application.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. server:
  2. port: 9000
  3. #https监听端口
  4. ssl:
  5. key-store: classpath:ipfcst.keystore
  6. key-store-password: jiayue6677*
  7. key-store-type: JKS
  8. spring:
  9. datasource:
  10. type: com.alibaba.druid.pool.DruidDataSource
  11. druid:
  12. # 数据源配置
  13. username: root
  14. password: '!QAZ2root'
  15. url: jdbc:mysql://localhost:3306/ipfcstv-3?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&autoReconnect=true&rewriteBatchedStatements=true&serverTimezone=Asia/Shanghai
  16. driver-class-name: com.mysql.cj.jdbc.Driver
  17. # 初始化 最小 最大
  18. initial-size: 5
  19. min-idle: 5
  20. max-active: 20
  21. # 配置获取连接等待超时的时间
  22. max-wait: 60000
  23. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  24. time-between-eviction-runs-millis: 60000
  25. # 配置一个连接在池中最小生存的时间,单位是毫秒
  26. min-evictable-idle-time-millis: 300000
  27. validation-query: SELECT 1 FROM DUAL
  28. test-while-idle: true
  29. test-on-borrow: false
  30. test-on-return: false
  31. # 打开PSCache,并且指定每个连接上PSCache的大小
  32. poolPreparedStatements: true
  33. maxPoolPreparedStatementPerConnectionSize: 20
  34. # 配置多个英文逗号分隔
  35. filters: stat,wall
  36. # WebStatFilter配置,说明请参考Druid Wiki,配置_配置WebStatFilter
  37. # 是否启用StatFilter默认值true
  38. web-stat-filter:
  39. enabled: true
  40. url-pattern: /*
  41. exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
  42. session-stat-enable: false
  43. session-stat-max-count: 1000
  44. principal-cookie-name: admin
  45. principal-session-name: admin
  46. profile-enable: true
  47. # 根据配置中的url-pattern来访问内置监控页面,如果是上面的配置,内置监控页面的首页是/druid/index.html
  48. # http://loacalhsot:8081/druid
  49. stat-view-servlet:
  50. enabled: true
  51. url-pattern: /druid/* # 监控页面访问路径
  52. # 允许清空统计数据
  53. reset-enable: true
  54. login-username: admin
  55. login-password: 123456
  56. # StatViewSerlvet展示出来的监控信息比较敏感,是系统运行的内部情况,如果你需要做访问控制,可以配置allow和deny这两个参数
  57. # deny优先于allow,如果在deny列表中,就算在allow列表中,也会被拒绝。如果allow没有配置或者为空,则允许所有访问
  58. # 配置的格式
  59. # <IP>
  60. # 或者<IP>/<SUB_NET_MASK_size>其中128.242.127.1/24
  61. # 24表示,前面24位是子网掩码,比对的时候,前面24位相同就匹配,不支持IPV6。
  62. allow:
  63. deny:
  64. jpa:
  65. hibernate:
  66. naming:
  67. physical-strategy: com.jiayue.ipfcst.common.data.strategy.IpfcstNamingStrategy
  68. ddl-auto: update
  69. show-sql: false
  70. pid:
  71. file: ./var/ipfcst-reportquery.pid
  72. logging:
  73. config: classpath:logback-reportquery.xml
  74. management:
  75. endpoints:
  76. web:
  77. exposure:
  78. include: '*'
  79. endpoint:
  80. health:
  81. show-details: always