application.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. server:
  2. port: 8081
  3. ################### spring配置 ###################
  4. spring:
  5. profiles:
  6. active: dev
  7. redis:
  8. host: localhost
  9. port: 6379
  10. password:
  11. http:
  12. converters:
  13. preferred-json-mapper: fastjson
  14. multipart:
  15. max-request-size: 100MB #最大请求大小
  16. max-file-size: 100MB #最大文件大小
  17. aop:
  18. proxy-target-class: true #false为启用jdk默认动态代理,true为cglib动态代理
  19. ################### druid配置 ###################
  20. druid:
  21. view:
  22. # enable: false无效
  23. username: root
  24. password: 123456
  25. slowsql: true
  26. datasource-sys:
  27. url: jdbc:mysql://127.0.0.1:3306/zen-sys?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull
  28. username: root
  29. password: 123456
  30. filters: log4j,wall,mergeStat
  31. driver-class-name: com.mysql.jdbc.Driver
  32. initialSize: 5
  33. minIdle: 5
  34. maxActive: 20
  35. timeBetweenEvictionRunsMillis: 60000
  36. minEvictableIdleTimeMillis: 30000
  37. validationQuery: SELECT 1 FROM DUAL
  38. testWhileIdle: true
  39. testOnBorrow: false
  40. testOnReturn: false
  41. ################### mybatis-plus配置 ###################
  42. mybatis-plus:
  43. mapper-locations: classpath*:com/gxzc/zen/*/mapping/*.xml
  44. typeAliasesPackage: com.gxzc.zen.persistence.model
  45. global-config:
  46. id-type: 0 #0:数据库ID自增 1:用户输入id 2:全局唯一id(IdWorker) 3:全局唯一ID(uuid)
  47. db-column-underline: false
  48. refresh-mapper: true
  49. configuration:
  50. map-underscore-to-camel-case: true
  51. cache-enabled: true #配置的缓存的全局开关
  52. lazyLoadingEnabled: true #延时加载的开关
  53. multipleResultSetsEnabled: true #开启的话,延时加载一个属性时会加载该对象全部属性,否则按需加载属性
  54. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #打印sql语句,调试用