myapps: storage: # root: /data/v5-runing/storage root: /data/obpm-demo siteid: refresh: cache: profile: weldingbeijingsecuriyin server: port: 8094 servlet: context-path: ${myapps.siteid}/obpm session: timeout: 3600 spring: datasource: url: jdbc:mysql://49.4.30.59:3306/obpm2_security?useUnicode=true&characterEncoding=utf8&useCompression=true&serverTimezone=GMT%2B8&useSSL=false username: prega_security password: Prega_security#202110 # 下面为连接池的补充设置,应用到上面所有数据源中 initialSize: 5 minIdle: 5 maxActive: 20 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}:${random.uuid} 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 heartbeat: enabled: true host: 127.0.0.1 port: 11500 redis: host: 127.0.0.1 port: 6379 # password: BaiChuanXin@2021_#* jpa: database: mysql show-sql: false hibernate: ddl-auto: none properties: hibernate: default_schema: logging: config: classpath:log4j2.xml #file: # mode: # useFtp: true # host: 14.16.176.2 # userName: basc # password: zazd#32A13 # port: 21 # filePath: