myapps: storage: root: /data/obpm-demo siteid: login: homeTemplateBoradType: refresh: cache: monitor: types: Created #freeTemplate免费 payTemplate付费 rtpayTemplate融通付费 xxpayTemplate某某公司付费 environment: network region: sourceSite: https://02obs-file-system-obpm-uploads.obs.cn-north-1.myhuaweicloud.com disabled: true mappings: beijing: prefixId: 110 domainId: xduDIOSsi06qmfpig0A dbMaps: securityFlow: security_flow kaopei: kp_jgww obpm2: obpm2_security ningxia: prefixId: 640 domainId: qS6PXrA7 dbMaps: securityFlow: securityflow kaopei: kp_jgww obpm2: obpm2_security hunan: prefixId: 43 domainId: __UDa4uPMdcOYgP7HETaf dbMaps: securityFlow: security_flow kaopei: kp_jgww obpm2: obpm2_security shanxi: prefixId: 610 domainId: guangxi: prefixId: 45 domainId: XhnE5gDX dbMaps: securityFlow: securityflow kaopei: kp_jgww obpm2: obpm2_security nanning: prefixId: 4501 domainId: __5t1lSFWdVSzJQq51OuC guowai: prefixId: 900 domainId: bxoxXtIP server: port: 0 tomcat: uri-encoding: UTF-8 basedir: ${myapps.storage.root}/uploads/tmps servlet: context-path: ${myapps.siteid}/obpm session: timeout: 3600 jsp: init-parameters: development: true error: include-stacktrace: ALWAYS include-message: ALWAYS spring.activemq.packages.trust-all: true spring: mvc: view: prefix: / suffix: .jsp static-path: /** pathmatch: matching-strategy: ANT_PATH_MATCHER http: encoding: force: true charset: UTF-8 enabled: true multipart: location: ${myapps.storage.root}/uploads/tmps application: name: obpm-runtime cloud: consul: discovery: # instance-id: ${spring.application.name}:${vcap.application.instance_id:${spring.application.instance_id:${random.value}}} instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port}:${random.int(0,1000)} prefer-ip-address: true health-check-interval: 10s health-check-path: ${myapps.siteid}/obpm/actuator/health hostname: ${spring.application.name} service-name: ${spring.application.name} enabled: true #https://www.cnblogs.com/duanxz/p/7049350.html health-check-critical-timeout: 6000s register: true deregister: true # tags: management.context-path=/actuator host: 192.168.0.71 port: 9500 # 数据库访问配置 datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://192.168.0.7:3368/obpm2?useUnicode=true&characterEncoding=utf8&useCompression=true&serverTimezone=GMT%2B8&useSSL=false username: v5_enterprise2021 password: Prod_v5#202109 # 下面为连接池的补充设置,应用到上面所有数据源中 initialSize: 1 minIdle: 5 maxActive: 20 # 配置获取连接等待超时的时间 maxWait: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 timeBetweenEvictionRunsMillis: 60000 # 配置一个连接在池中最小生存的时间,单位是毫秒 minEvictableIdleTimeMillis: 300000 validationQuery: SELECT 1 testWhileIdle: false testOnBorrow: false testOnReturn: false # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙 filters: stat,wall,log4j logSlowSql: true jpa: database: mysql show-sql: false hibernate: ddl-auto: none #设置默认schema,可以为空 properties: hibernate: default_schema: #Redis服务器地址 redis: host: 192.168.0.62 port: 6379 password: Bcxin@2019 lettuce: # redis连接池配置 pool: max-active: -1 #连接池最大连接数(使用负值表示没有限制) 默认为30 max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认为-1 max-idle: 3 # 连接池中的最大空闲连接 默认为8 min-idle: 0 # 连接池中的最小空闲连接 默认为 0 cache: redis: timeToLive: 360s resources: static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,/ feign: client: config: default: connect-timeout: 60000 read-timeout: 60000 #设置远程调用超时时间 ribbon: ReadTimeout: 20000 ConnectTimeout: 20000 logging: config: classpath:log4j2.xml management: endpoints: web: exposure: include: '*' metrics: enable: all: false endpoint: metrics: enabled: false endpoints: web: exposure: include: "*" exclude: "metrics" jmx: exposure: exclude: "*" endpoint: health: show-details: ALWAYS health: db: enabled: false