Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
TDLCloud
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WitCloud
TDLCloud
Commits
b0729f01
Commit
b0729f01
authored
Dec 13, 2019
by
zhuangzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释mqtt部分代码
parent
bed86874
Pipeline
#182
canceled with stage
in 0 seconds
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
280 additions
and
266 deletions
+280
-266
MqttConfig.java
src/main/java/com/example/tdl/config/mqtt/MqttConfig.java
+2
-2
MqttListener.java
src/main/java/com/example/tdl/mqtt/MqttListener.java
+263
-249
application-docker.properties
src/main/resources/application-docker.properties
+4
-4
application.properties
src/main/resources/application.properties
+11
-11
No files found.
src/main/java/com/example/tdl/config/mqtt/MqttConfig.java
View file @
b0729f01
...
@@ -9,8 +9,8 @@ import org.springframework.context.annotation.Configuration;
...
@@ -9,8 +9,8 @@ import org.springframework.context.annotation.Configuration;
* @Date: Created in 9:25 2018/3/13
* @Date: Created in 9:25 2018/3/13
* @Modified By:
* @Modified By:
**/
**/
@Configuration
//
@Configuration
@ConfigurationProperties
(
prefix
=
"tdl.mqtt"
)
//
@ConfigurationProperties(prefix = "tdl.mqtt")
public
class
MqttConfig
{
public
class
MqttConfig
{
private
String
url
;
private
String
url
;
...
...
src/main/java/com/example/tdl/mqtt/MqttListener.java
View file @
b0729f01
This diff is collapsed.
Click to expand it.
src/main/resources/application-docker.properties
View file @
b0729f01
...
@@ -27,10 +27,10 @@ server.port=8092
...
@@ -27,10 +27,10 @@ server.port=8092
# InfluxDB
# InfluxDB
spring.influxdb.url
=
http://witcloud-influxdb:8086
spring.influxdb.url
=
http://witcloud-influxdb:8086
tdl.mqtt.url
=
ssl://47.96.128.181
#
tdl.mqtt.url = ssl://47.96.128.181
tdl.mqtt.port
=
8883
#
tdl.mqtt.port = 8883
tdl.mqtt.username
=
logistics
#
tdl.mqtt.username = logistics
tdl.mqtt.password
=
logistics37774020
#
tdl.mqtt.password = logistics37774020
mqtt.userName
=
wtlogistics
mqtt.userName
=
wtlogistics
mqtt.password
=
wtlogistics
mqtt.password
=
wtlogistics
\ No newline at end of file
src/main/resources/application.properties
View file @
b0729f01
...
@@ -41,17 +41,17 @@ logging.config=classpath:logback.xml
...
@@ -41,17 +41,17 @@ logging.config=classpath:logback.xml
# Mqtt
# Mqtt
tdl.mqtt.url
=
ssl://172.16.1.24
#
tdl.mqtt.url = ssl://172.16.1.24
tdl.mqtt.port
=
8883
#
tdl.mqtt.port = 8883
tdl.mqtt.username
=
ugen
#
tdl.mqtt.username = ugen
tdl.mqtt.password
=
ugen
#
tdl.mqtt.password = ugen
tdl.mqtt.qos
=
1
#
tdl.mqtt.qos = 1
tdl.mqtt.timeout
=
20
#
tdl.mqtt.timeout = 20
# SSL Keys
#
#
SSL Keys
tdl.mqtt.cacrt
=
ca.crt
#
tdl.mqtt.cacrt = ca.crt
tdl.mqtt.clientkey
=
witcd.pem
#
tdl.mqtt.clientkey = witcd.pem
tdl.mqtt.clientcrt
=
witcd.crt
#
tdl.mqtt.clientcrt = witcd.crt
tdl.mqtt.clientpwd
=
#
tdl.mqtt.clientpwd =
# InfluxDB
# InfluxDB
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment