application.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. server:
  2. port: 8080
  3. # 配置⽇志输出级别
  4. logging:
  5. level:
  6. root: info
  7. work.baiyun.chronicdiseaseapp: debug
  8. spring:
  9. main:
  10. allow-circular-references: true
  11. allow-bean-definition-overriding: true
  12. application:
  13. name: chronic-disease-app
  14. # 配置数据库连接
  15. datasource:
  16. url: jdbc:mysql://127.0.0.1/chronicdiseaseapp?serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=utf-8&characterEncoding=utf-8
  17. username: root
  18. password: root
  19. driver-class-name: com.mysql.jdbc.Driver
  20. type: com.zaxxer.hikari.HikariDataSource
  21. hikari:
  22. minimum-idle: 5
  23. maximum-pool-size: 20
  24. idle-timeout: 60000
  25. max-lifetime: 60000
  26. connection-timeout: 30000
  27. pool-name: HikariDataSource
  28. # mybatis-plus 配置
  29. mybatis-plus:
  30. configuration:
  31. map-underscore-to-camel-case: true
  32. # 打印sql语句
  33. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  34. # 分⻚插件配置
  35. pagehelper:
  36. reasonable: true # 禁⽤合理化时
  37. support-methods-arguments: true
  38. params: count=countSql
  39. row-bounds-with-count: true
  40. helper-dialect: mysql
  41. # knife4j的增强配置,不需要增强可以不配
  42. knife4j:
  43. enable: true
  44. setting:
  45. language: zh_cn
  46. # 微信小程序配置
  47. wechat:
  48. appid: wx334b14b3d0bb1547 # TODO: replace with your AppID
  49. secret: 0b42a3e4becb7817d08e44e91e2824dd # TODO: replace with your AppSecret