application.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. server:
  2. port: 8086
  3. servlet:
  4. context-path: /water-tank-installation
  5. # 需要设置外置容器的tomcat8 maxPostSize
  6. # tomcat:
  7. # max-http-form-post-size: 10MB
  8. spring:
  9. servlet:
  10. multipart:
  11. max-request-size: 20MB
  12. max-file-size: 20MB
  13. datasource:
  14. driver-class-name: net.sf.log4jdbc.DriverSpy
  15. type: com.alibaba.druid.pool.DruidDataSource
  16. druid:
  17. # 连接池的配置信息
  18. # 初始化大小,最小,最大
  19. initial-size: 5
  20. min-idle: 5
  21. maxActive: 20
  22. # 配置获取连接等待超时的时间
  23. maxWait: 60000
  24. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  25. timeBetweenEvictionRunsMillis: 60000
  26. # 配置一个连接在池中最小生存的时间,单位是毫秒
  27. minEvictableIdleTimeMillis: 300000
  28. validationQuery: SELECT 1
  29. testWhileIdle: true
  30. testOnBorrow: true
  31. testOnReturn: false
  32. # 打开PSCache,并且指定每个连接上PSCache的大小
  33. poolPreparedStatements: false
  34. maxPoolPreparedStatementPerConnectionSize: 20
  35. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  36. filters: stat,wall
  37. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  38. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  39. # 配置DruidStatFilter
  40. web-stat-filter:
  41. enabled: true
  42. url-pattern: "/*"
  43. exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
  44. # 配置DruidStatViewServlet
  45. stat-view-servlet:
  46. url-pattern: "/druid/*"
  47. # IP白名单(没有配置或者为空,则允许所有访问)
  48. allow:
  49. # IP黑名单 (存在共同时,deny优先于allow)
  50. deny:
  51. # 禁用HTML页面上的“Reset All”功能
  52. reset-enable: false
  53. # 登录名
  54. login-username: admin
  55. # 登录密码
  56. login-password: jpsoft
  57. devtools:
  58. restart:
  59. enabled: true
  60. profiles:
  61. active: dev
  62. redis:
  63. # Redis数据库索引(默认为0)
  64. database: 4
  65. # Redis服务器地址
  66. host: 127.0.0.1
  67. #host: 127.0.0.1
  68. # Redis服务器连接端口
  69. port: 6379
  70. # Redis服务器连接密码(默认为空)
  71. password:
  72. #password: 123456
  73. # 连接池最大连接数(使用负值表示没有限制)
  74. pool:
  75. max-active: 8
  76. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  77. max-wait: -1
  78. # 连接池中的最大空闲连接
  79. max-idle: 8
  80. # 连接池中的最小空闲连接
  81. min-idle: 0
  82. # 连接超时时间(毫秒)
  83. timeout: 0
  84. rabbitmq:
  85. host: 119.36.146.59
  86. port: 5672
  87. username: admin
  88. password: admin
  89. #虚拟host 可以不设置,使用server默认host
  90. virtual-host: devmq
  91. resources:
  92. static-locations: classpath:/static/
  93. thymeleaf:
  94. cache: false
  95. mode: HTML
  96. prefix: classpath:/templates/
  97. suffix: .html
  98. encoding: UTF-8
  99. servlet:
  100. content-type: text/html; charset=utf-8
  101. jwt:
  102. secret: WJgLLiAktNj/vCNEoz6mfAmE0btwluCTk/TnJiZOIkQ=
  103. header: Authorization
  104. mybatis:
  105. typeAliasesPackage: com.jpsoft.employment.**.entity
  106. mapperLocations: classpath*:mapper/**/*.xml
  107. configuration:
  108. default-statement-timeout: 60
  109. pagehelper:
  110. helperDialect: mysql
  111. reasonable: true
  112. supportMethodsArguments: true
  113. params: count=countSql
  114. wx:
  115. #错误
  116. appId: wx014362202dd87dd7
  117. appSecret: aaf8db83ff69c3716a62e3d5bd21c292
  118. applet:
  119. #三得利小程序
  120. appId: wx7eec18cd89b9d777
  121. appSecret: 5a0aa258fda3e75097a80764dab73202
  122. #oss:
  123. # accessKeyId: LTAILGOo7bwpkvnq
  124. # accessKeySecret: ZGsaTO5klbSHxULr2Q3s2PiqKDzN15
  125. # endpoint: http://oss-cn-hangzhou.aliyuncs.com
  126. # bucketName: wzzgh2out
  127. # urlPrefix: http://vod.wzgh.org
  128. # objectPre: smart
  129. oss:
  130. accessKeyId: LTAI5tE6rbN2oHo1v5dfm8NL
  131. accessKeySecret: pYwijAneKvDVvC68Cyx33UgZHkdCH8
  132. endpoint: http://oss-cn-hangzhou.aliyuncs.com
  133. bucketName: rccs
  134. # urlPrefix: http://rccs.oss-cn-hangzhou.aliyuncs.com
  135. urlPrefix: https://oss.hbjp.com.cn
  136. objectPre: water-tank
  137. aliyun:
  138. accessKeyId: LTAI5tS5VM3ewtNgMBugXRVu
  139. accessKeySecret: GSEiVLd4nj6CN7KahXX6FOl1N8PNpw
  140. regionId: cn-hangzhou