重构代码
parent
2eefee7aff
commit
3c0eea7f4c
@ -0,0 +1,51 @@
|
||||
#端口号
|
||||
server:
|
||||
port: 8098
|
||||
|
||||
#数据源配置
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://192.168.50.200:3306/mqttcac?characterEncoding=utf-8&serverTimezone=UTC
|
||||
username: root
|
||||
password: 123456
|
||||
|
||||
|
||||
mybatis:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
#mybatis:
|
||||
#指定mybatis配置文件的位置
|
||||
#config-location: classpath:mybatis/mybatis-config.xml
|
||||
#指定映射文件的位置
|
||||
# mapper-locations: classpath:mybatis/mapper/*.xml
|
||||
|
||||
mqtt:
|
||||
publish:
|
||||
clientid: publish_client
|
||||
subscribe:
|
||||
clientid: subscribe_client
|
||||
broker: tcp://139.196.211.222:10883
|
||||
topic: mqtt/test
|
||||
username: test
|
||||
password: AliOS%1688
|
||||
qos: 0
|
||||
|
||||
logging:
|
||||
level:
|
||||
root: info
|
||||
com:
|
||||
xydl:
|
||||
controller:
|
||||
TestControler: info
|
||||
service:
|
||||
impl: info
|
||||
schedule: info
|
||||
file:
|
||||
# name: E:\log\mqtt.log
|
||||
name: /root/log/mqtt.log
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,51 @@
|
||||
#端口号
|
||||
server:
|
||||
port: 8099
|
||||
|
||||
#数据源配置
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/cac?characterEncoding=utf-8&serverTimezone=UTC
|
||||
username: root
|
||||
password: root
|
||||
|
||||
|
||||
mybatis:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
#mybatis:
|
||||
#指定mybatis配置文件的位置
|
||||
#config-location: classpath:mybatis/mybatis-config.xml
|
||||
#指定映射文件的位置
|
||||
# mapper-locations: classpath:mybatis/mapper/*.xml
|
||||
|
||||
mqtt:
|
||||
publish:
|
||||
clientid: publish_client
|
||||
subscribe:
|
||||
clientid: subscribe_client
|
||||
broker: tcp://139.196.211.222:10883
|
||||
topic: mqtt/test
|
||||
username: test
|
||||
password: AliOS%1688
|
||||
qos: 0
|
||||
|
||||
logging:
|
||||
level:
|
||||
root: info
|
||||
com:
|
||||
xydl:
|
||||
controller:
|
||||
TestControler: info
|
||||
service:
|
||||
impl: info
|
||||
schedule: info
|
||||
file:
|
||||
# name: E:\log\mqtt.log
|
||||
name: /root/log/mqtt.log
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,54 +1,3 @@
|
||||
#端口号
|
||||
server:
|
||||
port: 8098
|
||||
|
||||
#数据源配置
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/cac?characterEncoding=utf-8&serverTimezone=UTC
|
||||
username: root
|
||||
password: root
|
||||
# url: jdbc:mysql://192.168.50.200:3306/mqttcac?characterEncoding=utf-8&serverTimezone=UTC
|
||||
# username: root
|
||||
# password: 123456
|
||||
|
||||
|
||||
mybatis:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
#mybatis:
|
||||
#指定mybatis配置文件的位置
|
||||
#config-location: classpath:mybatis/mybatis-config.xml
|
||||
#指定映射文件的位置
|
||||
# mapper-locations: classpath:mybatis/mapper/*.xml
|
||||
|
||||
mqtt:
|
||||
publish:
|
||||
clientid: publish_client
|
||||
subscribe:
|
||||
clientid: subscribe_client
|
||||
broker: tcp://139.196.211.222:10883
|
||||
topic: mqtt/test
|
||||
username: test
|
||||
password: AliOS%1688
|
||||
qos: 0
|
||||
|
||||
logging:
|
||||
level:
|
||||
root: info
|
||||
com:
|
||||
xydl:
|
||||
controller:
|
||||
TestControler: info
|
||||
service:
|
||||
impl: info
|
||||
schedule: info
|
||||
file:
|
||||
# name: E:\log\mqtt.log
|
||||
name: /root/log/mqtt.log
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
profiles:
|
||||
active: dev
|
Loading…
Reference in New Issue