application-dev.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # 开发环境配置文件
  2. spring:
  3. # 数据库配置
  4. datasource:
  5. type: com.alibaba.druid.pool.DruidDataSource
  6. driver-class-name: com.mysql.cj.jdbc.Driver
  7. url: jdbc:mysql://114.116.114.108:3306/tk?useSSL=false&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true
  8. username: root
  9. password: ydl@123456
  10. filters: stat
  11. max-active: 5000
  12. initial-size: 20
  13. max-wait: 6000
  14. min-idle: 1
  15. time-between-eviction-runs-millis: 60000
  16. min-evictable-idle-time-millis: 300000
  17. test-while-idle: true
  18. test-on-borrow: false
  19. test-on-return: false
  20. pool-prepared-statements: true
  21. max-open-prepared-statements: 1000
  22. async-init: true
  23. # 文件上传配置
  24. conf:
  25. upload:
  26. # 物理文件存储位置,以/结束,windows已正斜杠,如:d:/exam-upload/
  27. dir: /data/upload/
  28. # 访问地址,注意不要去除/upload/file/,此节点为虚拟标识符
  29. # 如:http://localhost:8101/upload/file/exam.jpg,对应物理文件为:/data/upload/exam.jpg
  30. #url: http://localhost:8101/upload/file/
  31. url: http://114.116.114.108:8101/upload/file/
  32. # 开启文档
  33. swagger:
  34. enable: true
  35. logging:
  36. level:
  37. root: debug
  38. path: logs/${spring.application.name}/