application.yml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. server:
  2. port: 9001
  3. #https监听端口
  4. ssl:
  5. key-store: classpath:ipfcst.keystore
  6. key-store-password: jiayue6677*
  7. key-store-type: JKS
  8. spring:
  9. redis:
  10. host: 192.168.1.205
  11. port: 6379
  12. password: jiayue
  13. maxIdle: 10
  14. maxTotal: 30
  15. maxWaitMillis: 1500
  16. minEvictableIdleTimeMillis: 1800000
  17. numTestsPerEvictionRun: 1024
  18. softMinEvictableIdleTimeMillis: 10000
  19. testOnBorrow: true
  20. testWhileIdle: true
  21. timeBetweenEvictionRunsMillis: 30000
  22. timeout: 30000
  23. JmxEnabled: true
  24. blockWhenExhausted: false
  25. servlet:
  26. multipart:
  27. max-file-size: 4096MB # 单个文件的大小
  28. max-request-size: 4096MB # 上传文件的总大小
  29. datasource:
  30. type: com.alibaba.druid.pool.DruidDataSource
  31. # 系统启动时执行sql 初始化表内容
  32. data: classpath:sql/t_sys_user.sql
  33. sql-script-encoding: utf-8
  34. #schema:
  35. # 每次启动时均初始化表
  36. initialization-mode: always
  37. druid:
  38. # 数据源配置
  39. username: root
  40. password: '!QAZ2root'
  41. url: jdbc:mysql://localhost:3306/focus?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&autoReconnect=true&rewriteBatchedStatements=true&serverTimezone=Asia/Shanghai
  42. driver-class-name: com.mysql.cj.jdbc.Driver
  43. # 初始化 最小 最大
  44. initial-size: 10
  45. min-idle: 10
  46. max-active: 90
  47. # 配置获取连接等待超时的时间
  48. max-wait: 60000
  49. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  50. time-between-eviction-runs-millis: 60000
  51. # 配置一个连接在池中最小生存的时间,单位是毫秒
  52. min-evictable-idle-time-millis: 300000
  53. validation-query: SELECT 1 FROM DUAL
  54. test-while-idle: true
  55. test-on-borrow: false
  56. test-on-return: false
  57. # 打开PSCache,并且指定每个连接上PSCache的大小
  58. poolPreparedStatements: true
  59. maxPoolPreparedStatementPerConnectionSize: 20
  60. # 配置多个英文逗号分隔
  61. filters: stat,wall
  62. # WebStatFilter配置,说明请参考Druid Wiki,配置_配置WebStatFilter
  63. # 是否启用StatFilter默认值true
  64. web-stat-filter:
  65. enabled: true
  66. url-pattern: /*
  67. exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
  68. session-stat-enable: false
  69. session-stat-max-count: 1000
  70. principal-cookie-name: admin
  71. principal-session-name: admin
  72. profile-enable: true
  73. # 根据配置中的url-pattern来访问内置监控页面,如果是上面的配置,内置监控页面的首页是/druid/index.html
  74. # http://loacalhsot:8081/druid
  75. stat-view-servlet:
  76. enabled: true
  77. url-pattern: /druid/* # 监控页面访问路径
  78. # 允许清空统计数据
  79. reset-enable: true
  80. login-username: admin
  81. login-password: 123456
  82. # StatViewSerlvet展示出来的监控信息比较敏感,是系统运行的内部情况,如果你需要做访问控制,可以配置allow和deny这两个参数
  83. # deny优先于allow,如果在deny列表中,就算在allow列表中,也会被拒绝。如果allow没有配置或者为空,则允许所有访问
  84. # 配置的格式
  85. # <IP>
  86. # 或者<IP>/<SUB_NET_MASK_size>其中128.242.127.1/24
  87. # 24表示,前面24位是子网掩码,比对的时候,前面24位相同就匹配,不支持IPV6。
  88. allow:
  89. deny:
  90. jpa:
  91. hibernate:
  92. naming:
  93. physical-strategy: com.jiayue.ipfcst.common.data.strategy.IpfcstNamingStrategy
  94. ddl-auto: update
  95. show-sql: false
  96. logging:
  97. config: classpath:logback-console.xml
  98. management:
  99. endpoints:
  100. web:
  101. exposure:
  102. include: '*'
  103. endpoint:
  104. health:
  105. show-details: ALWAYS
  106. fileupload:
  107. # 文件上报动态日志配置
  108. log:
  109. level: info
  110. totalSizeCap: 20480MB
  111. maxFileSize: 50MB
  112. maxHistory: 90
  113. nettyServer:
  114. # 服务端等待接收信息的时间,单位:秒
  115. readerIdleTime: 60