application.yml 1.5 KB

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