| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- 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: 192.168.2.92:8848
- namespace: 49ab56f7-3752-4c43-a935-a1d4024eb82b
- redis:
- host: 192.168.2.92 #Redis服务器地址
- database: 3 # Redis数据库索引(默认为0)
- port: 6379 # Redis服务器连接端口
- password: Fjc@2025 # Redis服务器连接密码(默认为空)
- prefix: fsv2_test
- jedis:
- pool:
- max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
- max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
- max-idle: 8 # 连接池中的最大空闲连接
- min-idle: 0 # 连接池中的最小空闲连接
- datasource:
- url: jdbc:mysql://192.168.2.93:3306/test_deviceservice?useSSL=false&serverTimezone=GMT%2b8
- username: fujica
- password: Fjc@2025
- #指定mybatis映射文件的地址
- mybatis:
- mapper-locations: classpath:mapper/*.xml
- #configuration:
- # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- rocketmq:
- name-server: 192.168.16.20:9876;192.168.16.21:9876;192.168.16.22:9876
- producer:
- group: fujica-producer
- topic:
- topicDeviceInfo: topic_device_info_test
- topicDeviceOnlineStatus: topic_device_status_test
- consumer:
- topic:
- topicDeviceOnlineStatus: device_online_status_test
- heartbeat: heartbeat_event_test
- group:
- topicDeviceOnlineStatus: device_online_status_test
- heartbeat: device_heartbeat_event_test
- feign:
- httpclient:
- enabled: true #开启feign连接池
- max-connections: 100
- max-connections-per-route: 50
- client:
- config:
- default:
- connect-timeout: 2000 #默认连接超时时间
- read-timeout: 8000 #默认请求超时时间
|