application.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. server:
  2. port: 8080
  3. # 配置⽇志输出级别
  4. logging:
  5. level:
  6. root: info
  7. com.smart.reader: debug
  8. spring:
  9. main:
  10. allow-circular-references: true
  11. allow-bean-definition-overriding: true
  12. application:
  13. name: smart-reader
  14. # 配置数据库连接
  15. datasource:
  16. url: jdbc:mysql://localhost:3306/smart_reader?serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=utf-8&characterEncoding=utf-8
  17. username: root
  18. password: 123456
  19. driver-class-name: com.mysql.cj.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. # xml路径
  31. mapper-locations: classpath:mapper/**/*.xml
  32. configuration:
  33. map-underscore-to-camel-case: true
  34. # 打印sql语句
  35. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  36. # 分⻚插件配置
  37. pagehelper:
  38. reasonable: true # 禁⽤合理化时
  39. support-methods-arguments: true
  40. params: count=countSql
  41. row-bounds-with-count: true
  42. helper-dialect: mysql
  43. knife4j: