You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.6 KiB
107 lines
3.6 KiB
server:
|
|
port: 8091
|
|
servlet:
|
|
context-path: /api
|
|
spring:
|
|
datasource:
|
|
dynamic:
|
|
primary: db1
|
|
strict: false
|
|
datasource:
|
|
db1:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
url: jdbc:mysql://116.196.120.81:3306/device_system?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&serverTimezone=Asia/Shanghai&useSSL=false
|
|
username: root
|
|
password: 5ea47c0bdd7146ebbd53020eca@672307
|
|
db2:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
url: jdbc:mysql://116.196.120.81:3306/image_analysis_zs?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&serverTimezone=Asia/Shanghai&useSSL=false
|
|
username: root
|
|
password: 5ea47c0bdd7146ebbd53020eca@672307
|
|
#Hikari连接池配置
|
|
hikari:
|
|
#池中维护的最小空闲连接数
|
|
minimum-idle: 5
|
|
#池中最大连接数,包括闲置和使用中的连接
|
|
maximum-pool-size: 15
|
|
#自动提交从池中返回的连接
|
|
auto-commit: true
|
|
#连接允许在池中闲置的最长时间
|
|
idle-timeout: 30000
|
|
#连接池的用户定义名称,主要出现在日志记录和JMX管理控制台中以识别池和池配置
|
|
pool-name: DatebookHikariCP
|
|
#池中连接最长生命周期
|
|
max-lifetime: 18000000
|
|
#等待来自池的连接的最大毫秒数
|
|
connection-timeout: 30000
|
|
#验证该连接是否是有效的查询语句
|
|
connection-test-query: select 1 from dual
|
|
cloud:
|
|
inetutils:
|
|
timeout-seconds: 1000
|
|
config:
|
|
enabled: false
|
|
stream:
|
|
kafka:
|
|
binder:
|
|
brokers: localhost:9092 #Kafka的消息中间件服务器
|
|
zk-nodes: localhost:2181 #Zookeeper的节点,如果集群,后面加,号分隔
|
|
auto-create-topics: false #如果设置为false,就不会自动创建Topic 有可能你Topic还没创建就直接调用了。
|
|
# kafka:
|
|
# bootstrap-servers: localhost:9092
|
|
# consumer:
|
|
# group-id: ai-consumer-group
|
|
#kafka:
|
|
# topic: ai-topic
|
|
# # redis 相关
|
|
# redis:
|
|
# host: ${REDIS_URL:localhost}
|
|
# port: ${REDIS_PORT:6379}
|
|
# password: ${REDIS_PWD:111111}
|
|
# timeout: 10000
|
|
# jedis:
|
|
# pool:
|
|
# max-active: 1000
|
|
# max-wait: -1ms
|
|
# max-idle: 10
|
|
# min-idle: 5
|
|
mybatis-plus:
|
|
mapper-locations: classpath:mapper/*Mapper.xml
|
|
type-aliases-package: com.xr.device_udpclent
|
|
# 在查询语句的是否,对Map或者是entity进行映射赋值的时候null也进行映射。默认false,不进行映射
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
call-setters-on-nulls: true
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
# 设置更新或者修改的时候的策略,不进行校验,否则如果是null则不会进行更新或者插入,当然在@TableField注解进行指定单个字段
|
|
global-config:
|
|
db-config:
|
|
insert-strategy: ignored
|
|
update-strategy: ignored
|
|
logging:
|
|
org:
|
|
springframework:
|
|
boot:
|
|
autoconfigure:
|
|
logging: debug
|
|
udp:
|
|
server:
|
|
host: localhost
|
|
port: 9300
|
|
upLoad:
|
|
path: D:\\images\\images\\
|
|
url: http://localhost:85/upload/
|
|
python:
|
|
path: C:\\Users\\admin\\Anaconda3\\envs\\myconda310\\python.exe
|
|
modelPath: D:\\smartGrid\\smartGrid\\models
|
|
eureka:
|
|
instance:
|
|
instance-id: ${spring.cloud.client.ip-address}:${server.port}
|
|
prefer-ip-address: true
|
|
client:
|
|
healthcheck:
|
|
enabled: true
|
|
service-url:
|
|
defaultZone: http://localhost:8084/eureka
|