server: port: 10041 servlet: encoding: charset: UTF-8 force: true context-path: /device compression: enabled: true #开启数据压缩 mime-types: application/json,application/xml,text/html,text/xml,text/plain min-response-size: 2048 logging: file: path: log/wookit level: root: info "[javax.management]": INFO "[org.apache.http]": INFO "[org.apache.tomcat.util.net.NioEndpoint]": INFO "[sun.rmi]": INFO tracer: trace # 开启trace级别日志,在开发时可以开启此配置,则控制台可以打印es全部请求信息及DSL语句,为了避免重复,开启此项配置后,可以将EE的print-dsl设置为false. spring: application: name: deviceservice cloud: gateway: discovery: locator: lower-case-service-id: true enabled: true nacos: discovery: server-addr: 10.16.0.49:8848 namespace: 02f60846-3747-424e-a598-2ea9e66dfe87 redis: host: r-wz968zear8t0d8bkbg.redis.rds.aliyuncs.com #Redis服务器地址 database: 3 # Redis数据库索引(默认为0) port: 6379 # Redis服务器连接端口 password: yn8Vh85rxvtUPnqB # Redis服务器连接密码(默认为空) prefix: fsv2_pro jedis: pool: max-active: 100 # 连接池最大连接数(使用负值表示没有限制) max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制) max-idle: 20 # 连接池中的最大空闲连接 min-idle: 10 # 连接池中的最小空闲连接 datasource: url: jdbc:mysql://rm-wz9gzvutko8m16mey.mysql.cn-shenzhen.rds.aliyuncs.com:3306/deviceservice?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2b8 username: fujicaytcuser password: BGbn4jP!mq4jxn@o4fQyp5*@ type: com.zaxxer.hikari.HikariDataSource driver-class-name: com.mysql.cj.jdbc.Driver validation-timeout: 3000 idle-timeout: 60000 minimum-idle: 30 read-only: false connection-timeout: 60000 #请求连接的超时时间 maximum-pool-size: 100 #最大连接数量 max-lifetime: 1800000 #连接的最长生命周期 connection-test-query: SELECT 1 #指定mybatis映射文件的地址 mybatis: mapper-locations: classpath:mapper/*.xml rocketmq: name-server: 10.16.0.80:9876;10.16.0.81:9876;10.16.0.82:9876 producer: group: fujica-producer topic: topicDeviceInfo: topic_device_info_pro topicDeviceOnlineStatus: topic_device_status_pro consumer: topic: topicDeviceOnlineStatus: device_online_status_pro heartbeat: heartbeat_event_pro group: topicDeviceOnlineStatus: device_online_status_pro heartbeat: device_heartbeat_event_pro feign: httpclient: enabled: true #开启feign连接池 max-connections: 100 max-connections-per-route: 50 client: config: default: connect-timeout: 2000 #默认连接超时时间 read-timeout: 8000 #默认请求超时时间