Browse Source

双控更新数据库链接

csg6 1 month ago
parent
commit
6a08c7ae19

+ 9 - 9
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java

@@ -7,7 +7,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
7
 
7
 
8
 /**
8
 /**
9
  * 启动程序
9
  * 启动程序
10
- * 
10
+ *
11
  * @author ruoyi
11
  * @author ruoyi
12
  */
12
  */
13
 @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
13
 @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@@ -18,13 +18,13 @@ public class RuoYiApplication
18
     {
18
     {
19
         SpringApplication.run(RuoYiApplication.class, args);
19
         SpringApplication.run(RuoYiApplication.class, args);
20
         log.info(" >>>> 服务启动成功,欢迎使用 <<<\n " +
20
         log.info(" >>>> 服务启动成功,欢迎使用 <<<\n " +
21
-                "    _____   _   _    _____   _  __\n" +
22
-                "  / ____| | \\ | |  / ____| | |/ /\n" +
23
-                " | |  __  |  \\| | | (___   | ' / \n" +
24
-                " | | |_ | | . ` |  \\___ \\  |  <  \n" +
25
-                " | |__| | | |\\  |  ____) | | . \\ \n" +
26
-                "  \\_____| |_| \\_| |_____/  |_|\\_\\\n" +
27
-                "                                 \n" +
28
-                "                                 ");
21
+                "   _____   _  __           ______   _                              _       _         \n" +
22
+                "  / ____| | |/ /          |  ____| | |                            | |     | |        \n" +
23
+                " | (___   | ' /   ______  | |__    | |   ___   __      __   __ _  | |__   | |   ___  \n" +
24
+                "  \\___ \\  |  <   |______| |  __|   | |  / _ \\  \\ \\ /\\ / /  / _` | | '_ \\  | |  / _ \\ \n" +
25
+                "  ____) | | . \\           | |      | | | (_) |  \\ V  V /  | (_| | | |_) | | | |  __/ \n" +
26
+                " |_____/  |_|\\_\\          |_|      |_|  \\___/    \\_/\\_/    \\__,_| |_.__/  |_|  \\___| \n" +
27
+                "                                                                                     \n" +
28
+                "                                                                                     ");
29
     }
29
     }
30
 }
30
 }

+ 8 - 6
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/resources/application-druid-dev.yml

@@ -6,11 +6,11 @@ spring:
6
         druid:
6
         druid:
7
             # 主库数据源
7
             # 主库数据源
8
             master:
8
             master:
9
-                url: jdbc:mysql://localhost:3306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
10
-#                url: jdbc:mysql://39.106.66.72:3306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
9
+                url: jdbc:mysql://39.105.121.97:13306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
10
+#                url: jdbc:mysql://localhost:3306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
11
 #                url: jdbc:mysql://192.168.3.35:3306/shuangkong?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
11
 #                url: jdbc:mysql://192.168.3.35:3306/shuangkong?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
12
-                username: root
13
-                password: root
12
+                username: double_defense_dev
13
+                password: Eitc@gnhz702
14
 #                password: 123456
14
 #                password: 123456
15
             # 从库数据源
15
             # 从库数据源
16
             slave:
16
             slave:
@@ -66,9 +66,11 @@ spring:
66
     # redis 配置
66
     # redis 配置
67
     redis:
67
     redis:
68
         # 地址
68
         # 地址
69
-        host: localhost
69
+        host: 39.105.121.97
70
+#        host: localhost
70
         # 端口,默认为6379
71
         # 端口,默认为6379
71
-        port: 6379
72
+        port: 16379
73
+#        port: 6379
72
         # 数据库索引
74
         # 数据库索引
73
         database: 0
75
         database: 0
74
         # 密码
76
         # 密码

+ 1 - 1
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/resources/application.yml

@@ -21,7 +21,7 @@ ruoyi:
21
 # 开发环境配置
21
 # 开发环境配置
22
 server:
22
 server:
23
   # 服务器的HTTP端口,默认为8080
23
   # 服务器的HTTP端口,默认为8080
24
-  port: 8080
24
+  port: 28080
25
   servlet:
25
   servlet:
26
     # 应用的访问路径
26
     # 应用的访问路径
27
     context-path: /
27
     context-path: /

+ 7 - 6
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/resources/banner.txt

@@ -1,10 +1,11 @@
1
 Application Version: ${ruoyi.version}
1
 Application Version: ${ruoyi.version}
2
 Spring Boot Version: ${spring-boot.version}
2
 Spring Boot Version: ${spring-boot.version}
3
 
3
 
4
-   _____   _   _    _____   _  __
5
-  / ____| | \ | |  / ____| | |/ /
6
- | |  __  |  \| | | (___   | ' /
7
- | | |_ | | . ` |  \___ \  |  <
8
- | |__| | | |\  |  ____) | | . \
9
-  \_____| |_| \_| |_____/  |_|\_\
4
+   _____   _  __           ______   _                              _       _
5
+  / ____| | |/ /          |  ____| | |                            | |     | |
6
+ | (___   | ' /   ______  | |__    | |   ___   __      __   __ _  | |__   | |   ___
7
+  \___ \  |  <   |______| |  __|   | |  / _ \  \ \ /\ / /  / _` | | '_ \  | |  / _ \
8
+  ____) | | . \           | |      | | | (_) |  \ V  V /  | (_| | | |_) | | | |  __/
9
+ |_____/  |_|\_\          |_|      |_|  \___/    \_/\_/    \__,_| |_.__/  |_|  \___|
10
+
10
 
11