瀏覽代碼

去掉common和eureka,修改数据库为huimv-admin

523096025 4 年之前
父節點
當前提交
723f6da240

+ 0 - 6
shiwan/admin/pom.xml

@@ -110,12 +110,6 @@
             <version>3.5.6</version>
             <version>3.5.6</version>
             <scope>compile</scope>
             <scope>compile</scope>
         </dependency>
         </dependency>
-        <dependency>
-            <groupId>com.netflix.eureka</groupId>
-            <artifactId>eureka-client</artifactId>
-            <version>1.9.13</version>
-            <scope>compile</scope>
-        </dependency>
     </dependencies>
     </dependencies>
 
 
     <build>
     <build>

+ 2 - 15
shiwan/admin/src/main/resources/application-prod.yml

@@ -6,8 +6,8 @@ spring:
 
 
   #------DataSource-----
   #------DataSource-----
   datasource:
   datasource:
-    url: jdbc:mysql://127.0.0.1:3306/huimv-core_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
-    #url: jdbc:mysql://192.168.1.7:3306/huimv-core_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    url: jdbc:mysql://127.0.0.1:3306/huimv-admin?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    #url: jdbc:mysql://192.168.1.7:3306/huimv-admin?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
     username: root
     username: root
     password: hm123456
     password: hm123456
     driver-class-name: com.mysql.cj.jdbc.Driver
     driver-class-name: com.mysql.cj.jdbc.Driver
@@ -29,16 +29,3 @@ spring:
         max-idle: 10
         max-idle: 10
         min-idle: 0
         min-idle: 0
     timeout: 5000
     timeout: 5000
-
-eureka:
-  instance:
-    instance-id: ${spring.cloud.client.ip-address}:${server.port}
-    prefer-ip-address: true
-    hostname: huimv-core
-  client:
-    service-url:
-      defaultZone: http://localhost:8001/eureka/
-      #defaultZone: http://192.168.1.5:8001/eureka/,http://192.168.1.6:8002/eureka/
-    registry-fetch-interval-seconds: 15
-
-    #enabled: false

+ 2 - 14
shiwan/admin/src/main/resources/application-test.yml

@@ -6,8 +6,8 @@ spring:
 
 
   #------DataSource-----
   #------DataSource-----
   datasource:
   datasource:
-    #url: jdbc:mysql://127.0.0.1:3306/huimv-core_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
-    url: jdbc:mysql://192.168.1.7:3306/huimv-core_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    #url: jdbc:mysql://127.0.0.1:3306/huimv-admin?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    url: jdbc:mysql://192.168.1.7:3306/huimv-admin?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
     username: root
     username: root
     password: hm123456
     password: hm123456
     driver-class-name: com.mysql.cj.jdbc.Driver
     driver-class-name: com.mysql.cj.jdbc.Driver
@@ -35,15 +35,3 @@ spring:
         min-idle: 0
         min-idle: 0
     timeout: 5000
     timeout: 5000
 
 
-eureka:
-  instance:
-    instance-id: ${spring.cloud.client.ip-address}:${server.port}
-    prefer-ip-address: true
-    hostname: huimv-core
-  client:
-    service-url:
-      #defaultZone: http://127.0.0.1:8001/eureka/
-      defaultZone: http://192.168.1.5:8001/eureka/,http://192.168.1.6:8002/eureka/
-    registry-fetch-interval-seconds: 15
-
-    #enabled: false