|
|
|
@ -28,8 +28,8 @@ spring:
|
|
|
|
|
application:
|
|
|
|
|
name: nxhs-service
|
|
|
|
|
profiles:
|
|
|
|
|
# active: 'prod'
|
|
|
|
|
active: '@environment@'
|
|
|
|
|
# active: 'prod'
|
|
|
|
|
active: '@environment@'
|
|
|
|
|
servlet:
|
|
|
|
|
multipart: #文件传输配置
|
|
|
|
|
max-file-size: 100MB #单个数据大小限制
|
|
|
|
@ -42,8 +42,8 @@ spring:
|
|
|
|
|
instance:
|
|
|
|
|
name: ${spring.application.name}
|
|
|
|
|
service-url: http://localhost:${server.port}
|
|
|
|
|
# username: admin
|
|
|
|
|
# password: admin123
|
|
|
|
|
# username: admin
|
|
|
|
|
# password: admin123
|
|
|
|
|
datasource:
|
|
|
|
|
url: jdbc:mysql://127.0.0.1:3306/nxhs?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
@ -53,7 +53,7 @@ spring:
|
|
|
|
|
database: 1 #缓存库编号
|
|
|
|
|
host: 127.0.0.1
|
|
|
|
|
port: 6379
|
|
|
|
|
# password: 123456 # 密码为空时,请将本行注释
|
|
|
|
|
# password: 123456 # 密码为空时,请将本行注释
|
|
|
|
|
timeout: 3000 #超时时间(单位:秒)
|
|
|
|
|
lettuce: #Lettuce为Redis的Java驱动包
|
|
|
|
|
pool:
|
|
|
|
@ -101,8 +101,8 @@ nxhs:
|
|
|
|
|
- /api/demo/**
|
|
|
|
|
- /api/file/download
|
|
|
|
|
- /api/index/products
|
|
|
|
|
- /api/device/**
|
|
|
|
|
- /api/qrcode/**.txt
|
|
|
|
|
- /api/wx/**
|
|
|
|
|
- /api/wx-message/**
|
|
|
|
|
- /api/webSocketServer/**
|
|
|
|
|
adminKey: 8bd2aa89033ead51c505e44994e42189 # 后台接口访问Key
|
|
|
|
@ -130,4 +130,19 @@ nxhs:
|
|
|
|
|
sendMessageUrl: https://api.weixin.qq.com/cgi-bin/message/subscribe/send #调用消息推送接口地址
|
|
|
|
|
EncodingAESKey: #消息解码秘钥
|
|
|
|
|
# 微信支付
|
|
|
|
|
# keytool -genkeypair -alias nxhs -keyalg RSA -keypass nxhs2024 -keystore nxhs.jks -storepass nxhs2024
|
|
|
|
|
# keytool -genkeypair -alias nxhs -keyalg RSA -keypass nxhs2024 -keystore nxhs.jks -storepass nxhs2024
|
|
|
|
|
|
|
|
|
|
## MQTT##
|
|
|
|
|
#mqtt:
|
|
|
|
|
# host: tcp://172.30.19.4:1883
|
|
|
|
|
# userName: user1
|
|
|
|
|
# passWord: 1qazxsw2
|
|
|
|
|
# qos: 1
|
|
|
|
|
# clientId: nx-app #ClientId_local必须唯一 比如你已经定了叫ABC 那你就一直叫ABC 其他地方就不要使用ABC了
|
|
|
|
|
# cleanSession: false
|
|
|
|
|
# timeout: 60
|
|
|
|
|
# keepAlive: 60
|
|
|
|
|
# topics:
|
|
|
|
|
# '[testtopic/#]': 1
|
|
|
|
|
# '[testTopic/1]': 1
|
|
|
|
|
|
|
|
|
|