application-common.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. spring:
  2. main:
  3. allow-bean-definition-overriding: true
  4. profiles:
  5. include: undertow
  6. jackson:
  7. date-format: yyyy-MM-dd HH:mm:ss
  8. time-zone: GMT+8
  9. # 指定本地ip地址,适用于多网卡、网络适配器情况
  10. # cloud:
  11. # client:
  12. # ip-address: 127.0.0.1
  13. messages:
  14. default-locale: en_US
  15. locale-change-param-name: lang
  16. basename: i18n/messages
  17. cache-duration: 3600
  18. encoding: UTF-8
  19. ##spring boot用于设置上传文件大小--MultipartProperties.class
  20. servlet:
  21. multipart:
  22. max-file-size: 300MB # 最大支持文件大小
  23. max-request-size: 300MB # 最大支持请求大小
  24. resolve-lazily: true
  25. security:
  26. user:
  27. name: ibps
  28. password: ibps@123
  29. app:
  30. id: ${spring.application.name}
  31. version: 3.3.7-LC.RELEASE
  32. weights:
  33. - host: 192.168.3.210
  34. weight: 10
  35. - host: 192.168.3.220
  36. weight: 10
  37. - host: 192.168.3.230
  38. weight: 10
  39. - host: 192.168.3.240
  40. weight: 10
  41. ## 端点暴露问题,会导致用户的安全扫描报警,注释掉,勿删,仅供参考
  42. #management:
  43. # endpoints:
  44. # shutdown:
  45. # enabled: false
  46. # sensitive: false
  47. # web:
  48. # base-path: /
  49. # exposure:
  50. # include: '*'
  51. # exclude: beans
  52. # metrics:
  53. # tags:
  54. # application: ${spring.application.name}
  55. # export:
  56. # prometheus:
  57. # enabled: true
  58. # step: 1ms
  59. # descriptions: true
  60. # endpoint:
  61. # health:
  62. # enabled: true
  63. # show-details: always
  64. # env:
  65. # enabled: true
  66. # prometheus:
  67. # enabled: true
  68. # mappings:
  69. # enabled: false
  70. # health:
  71. # mail:
  72. # enabled: false
  73. # redis:
  74. # enabled: false
  75. # rabbit:
  76. # enabled: false
  77. # mongo:
  78. # enabled: false
  79. ## 新增内容,关闭端点暴露
  80. management:
  81. endpoints:
  82. enabled-by-default: false
  83. shutdown:
  84. enabled: false
  85. sensitive: false
  86. web:
  87. base-path: /
  88. exposure:
  89. include: ""
  90. exclude: "*"
  91. metrics:
  92. tags:
  93. application: ${spring.application.name}
  94. export:
  95. prometheus:
  96. enabled: false
  97. step: 1ms
  98. descriptions: true
  99. endpoint:
  100. # 显式禁用所有端点
  101. health:
  102. enabled: false
  103. info:
  104. enabled: false
  105. env:
  106. enabled: false
  107. heapdump:
  108. enabled: false
  109. configprops:
  110. enabled: false
  111. beans:
  112. enabled: false
  113. mappings:
  114. enabled: false
  115. trace:
  116. enabled: false
  117. dump:
  118. enabled: false
  119. autoconfig:
  120. enabled: false
  121. metrics:
  122. enabled: false
  123. loggers:
  124. enabled: false
  125. auditevents:
  126. enabled: false
  127. httptrace:
  128. enabled: false
  129. threaddump:
  130. enabled: false
  131. conditions:
  132. enabled: false
  133. flyway:
  134. enabled: false
  135. liquibase:
  136. enabled: false
  137. scheduledtasks:
  138. enabled: false
  139. prometheus:
  140. enabled: false
  141. shutdown:
  142. enabled: false
  143. health:
  144. mail:
  145. enabled: false
  146. redis:
  147. enabled: false
  148. rabbit:
  149. enabled: false
  150. mongo:
  151. enabled: false
  152. logging:
  153. config: classpath:config/log4j2.yml
  154. ##---------邮箱配置---------
  155. mail:
  156. notify-to: ${MAIL_NOTIFY_TO:}
  157. from-address: ${MAIL_FROM_ADDRESS:}
  158. host: ${MAIL_HOST:smtp.163.com}
  159. mail-address: ${MAIL_ADDRESS:}
  160. username: ${MAIL_USERNAME:}
  161. password: ${MAIL_PASSWORD:}
  162. ## 端口号 如果启用 163用465/994
  163. port: ${MAIL_PORT:465}
  164. default-encoding: utf-8
  165. ## 尝试使用AUTH命令认证用户
  166. smtp:
  167. auth: true
  168. ssl:
  169. enable: true
  170. starttls:
  171. enable: false
  172. ## 服务协议
  173. transport:
  174. protocol: ${MAIL_TRANSPORT_PROTOCOL:smtps}
  175. ##
  176. env: ${spring.profiles.active}
  177. apollo:
  178. meta: ${APOLLO_META:http://192.168.3.220:8080}
  179. bootstrap:
  180. enabled: ${APOLLO_BOOTSTRAP_ENABLED:false}
  181. aop:
  182. method:
  183. signature:
  184. open: ${METHOD_SIGNATURE_OPEN:true}
  185. delay: ${METHOD_SIGNATURE_DELAY:false}
  186. error:
  187. throw: ${METHOD_SIGNATURE_ERROR_THROW:false}
  188. com:
  189. lc:
  190. thread:
  191. size:
  192. max: ${THREAD_SIZE_MAX:256}
  193. work:
  194. count: ${THREAD_WORK_COUNT:3}
  195. config:
  196. enabled: ${CONFIG_ENABLED:false}
  197. cache:
  198. for-update: ${CACHE_FOR_UPDATE:false}
  199. runqian:
  200. server: ${RUNQIAN_SERVER:http://dev1.local}
  201. base-path: ${RUNQIAN_BASE_PATH:/demo}