application-local.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # 独立配置文件,可以拿到jar外面跑
  2. spring:
  3. application:
  4. name: ydl-exam-lite
  5. profiles:
  6. active: dev
  7. main:
  8. allow-bean-definition-overriding: true
  9. # 数据库配置
  10. datasource:
  11. type: com.alibaba.druid.pool.DruidDataSource
  12. driver-class-name: com.mysql.cj.jdbc.Driver
  13. url: jdbc:mysql://localhost:3306/yf_exam_lite?useSSL=false&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true
  14. username: root
  15. password: root
  16. filters: stat
  17. max-active: 5000
  18. initial-size: 20
  19. max-wait: 6000
  20. min-idle: 1
  21. time-between-eviction-runs-millis: 60000
  22. min-evictable-idle-time-millis: 300000
  23. test-while-idle: true
  24. test-on-borrow: false
  25. test-on-return: false
  26. pool-prepared-statements: true
  27. max-open-prepared-statements: 1000
  28. async-init: true
  29. server:
  30. port: 8101
  31. # 启用服务端压缩
  32. compression:
  33. enabled: true
  34. min-response-size: 10
  35. mime-types: application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css
  36. # 文件上传配置
  37. conf:
  38. upload:
  39. # 物理文件存储位置,以/结束,windows已正斜杠,如:d:/exam-upload/
  40. dir: /data/upload/
  41. # 访问地址,注意不要去除/upload/file/,此节点为虚拟标识符
  42. # 如:http://localhost:8101/upload/file/exam.jpg,对应物理文件为:/data/upload/exam.jpg
  43. url: http://114.116.114.108:8101/upload/file/
  44. # 开启文档
  45. swagger:
  46. enable: true
  47. logging:
  48. level:
  49. root: debug
  50. path: logs/${spring.application.name}/