spring: main: allow-bean-definition-overriding: true profiles: include: undertow jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 # 指定本地ip地址,适用于多网卡、网络适配器情况 # cloud: # client: # ip-address: 127.0.0.1 messages: default-locale: en_US locale-change-param-name: lang basename: i18n/messages cache-duration: 3600 encoding: UTF-8 ##spring boot用于设置上传文件大小--MultipartProperties.class servlet: multipart: max-file-size: 300MB # 最大支持文件大小 max-request-size: 300MB # 最大支持请求大小 resolve-lazily: true security: user: name: ibps password: ibps@123 app: id: ${spring.application.name} version: 3.3.7-LC.RELEASE weights: - host: 192.168.3.210 weight: 10 - host: 192.168.3.220 weight: 10 - host: 192.168.3.230 weight: 10 - host: 192.168.3.240 weight: 10 ## 端点暴露问题,会导致用户的安全扫描报警,注释掉,勿删,仅供参考 #management: # endpoints: # shutdown: # enabled: false # sensitive: false # web: # base-path: / # exposure: # include: '*' # exclude: beans # metrics: # tags: # application: ${spring.application.name} # export: # prometheus: # enabled: true # step: 1ms # descriptions: true # endpoint: # health: # enabled: true # show-details: always # env: # enabled: true # prometheus: # enabled: true # mappings: # enabled: false # health: # mail: # enabled: false # redis: # enabled: false # rabbit: # enabled: false # mongo: # enabled: false ## 新增内容,关闭端点暴露 management: endpoints: enabled-by-default: false shutdown: enabled: false sensitive: false web: base-path: / exposure: include: "" exclude: "*" metrics: tags: application: ${spring.application.name} export: prometheus: enabled: false step: 1ms descriptions: true endpoint: # 显式禁用所有端点 health: enabled: false info: enabled: false env: enabled: false heapdump: enabled: false configprops: enabled: false beans: enabled: false mappings: enabled: false trace: enabled: false dump: enabled: false autoconfig: enabled: false metrics: enabled: false loggers: enabled: false auditevents: enabled: false httptrace: enabled: false threaddump: enabled: false conditions: enabled: false flyway: enabled: false liquibase: enabled: false scheduledtasks: enabled: false prometheus: enabled: false shutdown: enabled: false health: mail: enabled: false redis: enabled: false rabbit: enabled: false mongo: enabled: false logging: config: classpath:config/log4j2.yml ##---------邮箱配置--------- mail: notify-to: ${MAIL_NOTIFY_TO:} from-address: ${MAIL_FROM_ADDRESS:} host: ${MAIL_HOST:smtp.163.com} mail-address: ${MAIL_ADDRESS:} username: ${MAIL_USERNAME:} password: ${MAIL_PASSWORD:} ## 端口号 如果启用 163用465/994 port: ${MAIL_PORT:465} default-encoding: utf-8 ## 尝试使用AUTH命令认证用户 smtp: auth: true ssl: enable: true starttls: enable: false ## 服务协议 transport: protocol: ${MAIL_TRANSPORT_PROTOCOL:smtps} ## env: ${spring.profiles.active} apollo: meta: ${APOLLO_META:http://192.168.3.220:8080} bootstrap: enabled: ${APOLLO_BOOTSTRAP_ENABLED:false} aop: method: signature: open: ${METHOD_SIGNATURE_OPEN:true} delay: ${METHOD_SIGNATURE_DELAY:false} error: throw: ${METHOD_SIGNATURE_ERROR_THROW:false} com: lc: thread: size: max: ${THREAD_SIZE_MAX:256} work: count: ${THREAD_WORK_COUNT:3} config: enabled: ${CONFIG_ENABLED:false} cache: for-update: ${CACHE_FOR_UPDATE:false} runqian: server: ${RUNQIAN_SERVER:http://dev1.local} base-path: ${RUNQIAN_BASE_PATH:/demo}