Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
my-flink-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
AI算法平台
my-flink-project
Commits
f061c1c3
Commit
f061c1c3
authored
Sep 14, 2023
by
周昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修改生产环境配置
parent
98a67e3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/main/java/com/censoft/flink/mqtt/MqttConsumer.java
src/main/java/com/censoft/flink/mqtt/MqttConsumer.java
+1
-1
src/main/resources/mybatis.xml
src/main/resources/mybatis.xml
+2
-2
No files found.
src/main/java/com/censoft/flink/mqtt/MqttConsumer.java
View file @
f061c1c3
...
...
@@ -32,7 +32,7 @@ public class MqttConsumer extends RichParallelSourceFunction<AlgorithmPushDto> {
//包装连接的方法
private
void
connect
()
throws
MqttException
{
//配置连接参数
MqttConfig
mqttConfigBean
=
new
MqttConfig
(
""
,
""
,
"tcp://1
92.168.3.82
:1883"
,
"DC"
+
(
int
)
(
Math
.
random
()
*
100000000
),
msgTopic
);
MqttConfig
mqttConfigBean
=
new
MqttConfig
(
""
,
""
,
"tcp://1
72.16.21.3
:1883"
,
"DC"
+
(
int
)
(
Math
.
random
()
*
100000000
),
msgTopic
);
//连接mqtt服务器
client
=
new
MqttClient
(
mqttConfigBean
.
getHostUrl
(),
mqttConfigBean
.
getClientId
(),
new
MemoryPersistence
());
MqttConnectOptions
options
=
new
MqttConnectOptions
();
...
...
src/main/resources/mybatis.xml
View file @
f061c1c3
...
...
@@ -9,9 +9,9 @@
<!-- 下面是配置一下数据源,其实后面我们就不这样配置了,都在.yml文件中配置-->
<dataSource
type=
"POOLED"
>
<property
name=
"driver"
value=
"com.mysql.cj.jdbc.Driver"
/>
<property
name=
"url"
value=
"jdbc:mysql://1
92.168.4.221:3307
/ry-vue?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong&allowMultiQueries=true"
/>
<property
name=
"url"
value=
"jdbc:mysql://1
72.16.33.152:3306
/ry-vue?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong&allowMultiQueries=true"
/>
<property
name=
"username"
value=
"root"
/>
<property
name=
"password"
value=
"
123456
"
/>
<property
name=
"password"
value=
"
root
"
/>
</dataSource>
</environment>
</environments>
...
...
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