2026-01-29 17:06:01 +08:00
|
|
|
|
# 开发环境配置
|
|
|
|
|
|
server:
|
|
|
|
|
|
# 服务器的HTTP端口,默认为8080
|
|
|
|
|
|
port: 8092
|
|
|
|
|
|
servlet:
|
|
|
|
|
|
# 应用的访问路径
|
|
|
|
|
|
context-path: /sipaiis_data
|
|
|
|
|
|
tomcat:
|
|
|
|
|
|
# tomcat的URI编码
|
|
|
|
|
|
uri-encoding: UTF-8
|
|
|
|
|
|
|
|
|
|
|
|
# DataSource Config
|
|
|
|
|
|
spring:
|
|
|
|
|
|
redis:
|
|
|
|
|
|
mode: single #单服务模式
|
2026-01-29 19:25:01 +08:00
|
|
|
|
host: 127.0.0.1
|
2026-01-29 17:06:01 +08:00
|
|
|
|
port: 6379
|
|
|
|
|
|
database: 0
|
|
|
|
|
|
cluster:
|
|
|
|
|
|
nodes: 172.16.242.44:6379,172.16.242.45:6379,172.16.242.46:6379,172.16.242.47:6379,172.16.242.48:6379,172.16.242.49:6379
|
|
|
|
|
|
max-redirects: 3
|
|
|
|
|
|
password: zaqwsx
|
|
|
|
|
|
timeout: 100000
|
|
|
|
|
|
|
|
|
|
|
|
data:
|
|
|
|
|
|
elasticsearch:
|
|
|
|
|
|
cluster-name: elasticsearch-sipaiis
|
|
|
|
|
|
cluster-nodes: 132.120.136.19:9200
|
|
|
|
|
|
|
|
|
|
|
|
datasource:
|
|
|
|
|
|
master:
|
|
|
|
|
|
username: sa
|
2026-01-29 19:31:19 +08:00
|
|
|
|
password: P76XB3nm36aMkN6n
|
2026-01-29 19:25:01 +08:00
|
|
|
|
jdbc-url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=SIPAIIS_WMS_HQAQ
|
2026-01-29 17:06:01 +08:00
|
|
|
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
|
|
|
|
|
|
|
|
#生产库
|
|
|
|
|
|
js1:
|
|
|
|
|
|
username: sa
|
2026-01-29 19:31:19 +08:00
|
|
|
|
password: P76XB3nm36aMkN6n
|
2026-01-29 19:25:01 +08:00
|
|
|
|
jdbc-url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=EIP_PRD_HQWS
|
2026-01-29 17:06:01 +08:00
|
|
|
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
|
|
|
|
|
|
|
|
#生产库
|
|
|
|
|
|
js2:
|
|
|
|
|
|
username: sa
|
2026-01-29 19:31:19 +08:00
|
|
|
|
password: P76XB3nm36aMkN6n
|
2026-01-29 19:25:01 +08:00
|
|
|
|
jdbc-url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=EIP_PRD_HQWS
|
2026-01-29 17:06:01 +08:00
|
|
|
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
|
|
|
|
|
|
|
|
#生产库
|
|
|
|
|
|
js3:
|
|
|
|
|
|
username: sa
|
2026-01-29 19:31:19 +08:00
|
|
|
|
password: P76XB3nm36aMkN6n
|
2026-01-29 19:25:01 +08:00
|
|
|
|
jdbc-url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=EIP_PRD_HQWS
|
2026-01-29 17:06:01 +08:00
|
|
|
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
|
|
|
|
|
|
|
|
kafka:
|
|
|
|
|
|
# Kafka 服务器地址 (KRaft模式)
|
|
|
|
|
|
bootstrap-servers: 192.168.10.17:9092
|
|
|
|
|
|
|
|
|
|
|
|
# 生产者配置
|
|
|
|
|
|
producer:
|
|
|
|
|
|
key-serializer: org.apache.kafka.common.serialization.StringSerializer
|
|
|
|
|
|
value-serializer: org.apache.kafka.common.serialization.StringSerializer
|
|
|
|
|
|
acks: all
|
|
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
|
|
|
|
# 消费者配置
|
|
|
|
|
|
consumer:
|
|
|
|
|
|
group-id: my-group-2.2.0
|
|
|
|
|
|
auto-offset-reset: earliest
|
|
|
|
|
|
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
|
|
|
|
|
|
value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
|
|
|
|
|
|
enable-auto-commit: false
|
|
|
|
|
|
properties:
|
|
|
|
|
|
missing.topics.fatal: false # 关键修正点
|
|
|
|
|
|
|
|
|
|
|
|
listener:
|
|
|
|
|
|
ack-mode: manual # 设置为手动提交
|
|
|
|
|
|
|
|
|
|
|
|
# Admin客户端配置(用于topic自动创建)
|
|
|
|
|
|
admin:
|
|
|
|
|
|
fail-fast: true
|
|
|
|
|
|
properties:
|
|
|
|
|
|
auto.create.topics.enable: true
|
|
|
|
|
|
|
|
|
|
|
|
# 适配Kafka 3.x的额外配置
|
|
|
|
|
|
properties:
|
|
|
|
|
|
security.protocol: PLAINTEXT
|
|
|
|
|
|
# interceptor.classes: org.apache.kafka.clients.interceptor.ProducerInterceptor
|
|
|
|
|
|
|
|
|
|
|
|
# rabbitmq:
|
|
|
|
|
|
# host: 10.18.68.10:90
|
|
|
|
|
|
# port: 5672
|
|
|
|
|
|
# username: admin
|
|
|
|
|
|
# password: admin
|
|
|
|
|
|
# #虚拟host 可以不设置,使用server默认host
|
|
|
|
|
|
# virtual-host: /
|
|
|
|
|
|
|
|
|
|
|
|
main:
|
|
|
|
|
|
allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
|
|
|
|
|
|
|
|
|
|
|
|
mybatis:
|
|
|
|
|
|
mapper-locations: classpath:mybatis/mapper/**/*.xml
|
|
|
|
|
|
type-aliases-package: com.sipai.entity
|
|
|
|
|
|
|
|
|
|
|
|
#showSql
|
|
|
|
|
|
logging:
|
|
|
|
|
|
config: classpath:log4j2.xml
|
|
|
|
|
|
# level:
|
|
|
|
|
|
# com:
|
|
|
|
|
|
# example:
|
|
|
|
|
|
# mapper: debug
|
|
|
|
|
|
|
|
|
|
|
|
thymeleaf:
|
|
|
|
|
|
mode: HTML
|
|
|
|
|
|
encoding: utf-8
|
|
|
|
|
|
cache: false
|
|
|
|
|
|
enabled: false
|
|
|
|
|
|
prefix: classpath:/templates/
|
|
|
|
|
|
|
|
|
|
|
|
# PageHelper配置(application.yml)
|
|
|
|
|
|
pagehelper:
|
|
|
|
|
|
helper-dialect: mysql
|
|
|
|
|
|
reasonable: true
|
|
|
|
|
|
support-methods-arguments: true
|
|
|
|
|
|
params: count=countSql
|
|
|
|
|
|
|
|
|
|
|
|
opcua:
|
|
|
|
|
|
enabled: false # 是否启用OPC UA功能,默认为true
|
|
|
|
|
|
server-url: "opc.tcp://132.120.136.19:49320" # OPC UA服务器地址和端口
|
|
|
|
|
|
# security-policy: Basic256Sha256
|
|
|
|
|
|
# security-mode: SignAndEncrypt
|
|
|
|
|
|
security-policy: None # 安全策略设为None
|
|
|
|
|
|
security-mode: None # 安全模式设为None
|
|
|
|
|
|
username: "administrator" # 用户名(可选)
|
|
|
|
|
|
password: "sipai@64368180" # 密码(可选)
|
|
|
|
|
|
|
|
|
|
|
|
app:
|
|
|
|
|
|
max-points: 200 #实时数据接口一次最多点位数
|
|
|
|
|
|
|
|
|
|
|
|
mqtt:
|
|
|
|
|
|
broker-address: "tcp://192.168.10.17:1883"
|
|
|
|
|
|
dashboard-01: "http://192.168.10.17:18083"
|
|
|
|
|
|
username: "admin"
|
|
|
|
|
|
password: "sipai@64368180"
|
|
|
|
|
|
|
|
|
|
|
|
# udp服务
|
|
|
|
|
|
udp:
|
|
|
|
|
|
server:
|
|
|
|
|
|
enabled: false # 是否启用UDP服务,默认为true
|
|
|
|
|
|
port: 5006 # UDP服务端口
|
|
|
|
|
|
|
|
|
|
|
|
scheduled:
|
|
|
|
|
|
enabled: true # 设置为false即可临时关闭定时任务
|