application.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. app:
  32. simulatedDelay:
  33. enabled: true
  34. millis: 3000
  35. # mybatis-plus 配置
  36. mybatis-plus:
  37. configuration:
  38. map-underscore-to-camel-case: true
  39. # 打印sql语句
  40. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  41. # 分⻚插件配置
  42. pagehelper:
  43. reasonable: true # 禁⽤合理化时
  44. support-methods-arguments: true
  45. params: count=countSql
  46. row-bounds-with-count: true
  47. helper-dialect: mysql
  48. # knife4j的增强配置,不需要增强可以不配
  49. knife4j:
  50. enable: true
  51. setting:
  52. language: zh_cn
  53. # 微信小程序配置
  54. # (测试号)
  55. #wechat:
  56. # appid: wxca3790d0cfe94e8f
  57. # secret: b7865d568205b4c224c40a430c70275f
  58. # (预览号)
  59. wechat:
  60. appid: wx334b14b3d0bb1547
  61. secret: 0b42a3e4becb7817d08e44e91e2824dd
  62. avatar:
  63. root-path: D:/慢病APP/Temp/avatar-storage/
  64. max-size: 2MB
  65. allowed-types: jpg,png,jpeg,webp
  66. news-image:
  67. root-path: D:/慢病APP/Temp/news-images/
  68. max-size: 5MB
  69. allowed-types: jpg,png,jpeg,webp