application.yml 1.9 KB

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