application-common.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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: 200MB # 最大支持文件大小
  23. max-request-size: 200MB # 最大支持请求大小
  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. management:
  42. endpoints:
  43. shutdown:
  44. enabled: false
  45. sensitive: false
  46. web:
  47. base-path: /
  48. exposure:
  49. include: '*'
  50. exclude: beans
  51. metrics:
  52. tags:
  53. application: ${spring.application.name}
  54. export:
  55. prometheus:
  56. enabled: true
  57. step: 1ms
  58. descriptions: true
  59. endpoint:
  60. health:
  61. enabled: true
  62. show-details: always
  63. env:
  64. enabled: true
  65. prometheus:
  66. enabled: true
  67. mappings:
  68. enabled: false
  69. health:
  70. mail:
  71. enabled: false
  72. redis:
  73. enabled: false
  74. rabbit:
  75. enabled: false
  76. mongo:
  77. enabled: false
  78. logging:
  79. config: classpath:config/log4j2.yml
  80. ##---------邮箱配置---------
  81. mail:
  82. notify-to: ${MAIL_NOTIFY_TO:}
  83. from-address: ${MAIL_FROM_ADDRESS:}
  84. host: ${MAIL_HOST:smtp.163.com}
  85. mail-address: ${MAIL_ADDRESS:}
  86. username: ${MAIL_USERNAME:}
  87. password: ${MAIL_PASSWORD:}
  88. ## 端口号 如果启用 163用465/994
  89. port: ${MAIL_PORT:465}
  90. default-encoding: utf-8
  91. ## 尝试使用AUTH命令认证用户
  92. smtp:
  93. auth: true
  94. ssl:
  95. enable: true
  96. starttls:
  97. enable: false
  98. ## 服务协议
  99. transport:
  100. protocol: ${MAIL_TRANSPORT_PROTOCOL:smtps}
  101. ##
  102. env: ${spring.profiles.active}
  103. apollo:
  104. meta: ${APOLLO_META:http://192.168.3.220:8080}
  105. bootstrap:
  106. enabled: ${APOLLO_BOOTSTRAP_ENABLED:false}
  107. aop:
  108. method:
  109. signature:
  110. open: ${METHOD_SIGNATURE_OPEN:true}
  111. delay: ${METHOD_SIGNATURE_DELAY:false}
  112. error:
  113. throw: ${METHOD_SIGNATURE_ERROR_THROW:false}
  114. com:
  115. lc:
  116. thread:
  117. size:
  118. max: ${THREAD_SIZE_MAX:256}
  119. work:
  120. count: ${THREAD_WORK_COUNT:3}
  121. config:
  122. enabled: ${CONFIG_ENABLED:false}
  123. cache:
  124. for-update: ${CACHE_FOR_UPDATE:false}
  125. runqian:
  126. server: ${RUNQIAN_SERVER:http://dev1.local}
  127. base-path: ${RUNQIAN_BASE_PATH:/demo}
  128. revoke:
  129. index-url: ${INDEX_URL:/ibps/business/v3/sys/CronNotify/data}