Bladeren bron

修改镇汇总

523096025 2 jaren geleden
bovenliggende
commit
f6ef861b11

+ 2 - 0
huimv-cattle/src/main/java/com/huimv/cattle/config/GlobalInterceptor.java

@@ -40,6 +40,7 @@ public class GlobalInterceptor implements HandlerInterceptor {
 //            writer.write("不能直连服务接口,必须请求gateway网关转发.");
 //            writer.write("不能直连服务接口,必须请求gateway网关转发.");
 //            return false;
 //            return false;
 //        }
 //        }
+        System.out.println(secreKey);
         //        return true;
         //        return true;
         //token验证
         //token验证
         if (!(obj instanceof HandlerMethod)) {
         if (!(obj instanceof HandlerMethod)) {
@@ -110,4 +111,5 @@ public class GlobalInterceptor implements HandlerInterceptor {
     public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
     public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
 
 
     }
     }
+
 }
 }

+ 24 - 24
huimv-cattle/src/main/resources/application-prod2.yml

@@ -81,30 +81,30 @@ spring:
 #    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
 #    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
 #    open-in-view: true
 #    open-in-view: true
 
 
-  rabbitmq:
-    host: 121.36.134.218
-    port: 5672
-    username: admin
-    password: admin
-    #虚拟host 可以不设置,使用server默认host
-    virtual-host: /registration_center
-    listener:
-      simple:
-        acknowledge-mode: none
-
-  #redis
-  redis:
-    database: 0
-    host: 122.112.224.199
-    port: 6379
-    password: hm123456
-    timeout: 5000ms
-    jedis:
-      pool:
-        max-active: 20
-        max-wait: -1
-        max-idle: 10
-        min-idle: 0
+#  rabbitmq:
+#    host: 121.36.134.218
+#    port: 5672
+#    username: admin
+#    password: admin
+#    #虚拟host 可以不设置,使用server默认host
+#    virtual-host: /registration_center
+#    listener:
+#      simple:
+#        acknowledge-mode: none
+#
+#  #redis
+#  redis:
+#    database: 0
+#    host: 122.112.224.199
+#    port: 6379
+#    password: hm123456
+#    timeout: 5000ms
+#    jedis:
+#      pool:
+#        max-active: 20
+#        max-wait: -1
+#        max-idle: 10
+#        min-idle: 0
 
 
 mybatis-plus:
 mybatis-plus:
   configuration:
   configuration:

+ 113 - 0
huimv-cattle/src/main/resources/application-prod3.yml

@@ -0,0 +1,113 @@
+server:
+  port: 10010
+spring:
+  application:
+    name: huimv-eartag2-manage2
+
+  datasource:
+    url: jdbc:mysql://36.133.104.13:3306/huimv-farm-cattle?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: Admin2023!
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    show-sql: true
+    database: mysql
+    hibernate:
+      ddl-auto: update
+
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
+    open-in-view: true
+
+
+  #配置rabbitMq 服务器
+#  rabbitmq:
+#    host: 10.0.0.4
+#    port: 5672
+#    username: huimv
+#    password: hm123456
+#    #虚拟host 可以不设置,使用server默认host
+#    virtual-host: /
+  #redis
+#  redis:
+#    database: 0
+#    host: 192.168.1.68
+#    port: 6379
+#    password: hm123456
+#    timeout: 5000ms
+#    jedis:
+#      pool:
+#        max-active: 20
+#        max-wait: -1
+#        max-idle: 10
+#        min-idle: 0
+#    lettuce:
+#      pool:
+#        max-active: 3
+#        min-idle: 2
+#        max-idle: 3
+#        max-wait: 1
+#      shutdown-timeout: 100
+
+#  data:
+#    redis:
+#      repositories:
+#        enabled: false
+
+  #是否缓存空值
+#  cache:
+#    redis:
+#      cache-null-values: false
+    #server:
+#  port: 9110
+#spring:
+#  application:
+#    name: huimv-hy-autoGetData
+#
+#  datasource:
+##    url: jdbc:mysql://47.98.175.112:3306/huimv_ql_farm_haiyan?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+#    #    url: jdbc:mysql://36.22.189.214:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+#        url: jdbc:mysql://115.238.57.190:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+#    username: root
+#    password: hm123456
+#    driver-class-name: com.mysql.cj.jdbc.Driver
+#  jpa:
+#    properties:
+#      hibernate:
+#        enable_lazy_load_no_trans: true
+#    show-sql: true
+#    database: mysql
+#    hibernate:
+#      ddl-auto: update
+#    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
+#    open-in-view: true
+
+#  rabbitmq:
+#    host: 121.36.134.218
+#    port: 5672
+#    username: admin
+#    password: admin
+#    #虚拟host 可以不设置,使用server默认host
+#    virtual-host: /registration_center
+#    listener:
+#      simple:
+#        acknowledge-mode: none
+#
+#  #redis
+#  redis:
+#    database: 0
+#    host: 122.112.224.199
+#    port: 6379
+#    password: hm123456
+#    timeout: 5000ms
+#    jedis:
+#      pool:
+#        max-active: 20
+#        max-wait: -1
+#        max-idle: 10
+#        min-idle: 0
+
+mybatis-plus:
+  configuration:
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+  # mapper.xml文件所存放的位置
+  mapper-locations: classpath*:com/huimv/cattle/mapper/xml/*.xml  # 不加这一行出错:“org.apache.ibatis.binding.BindingException:  Invalid bound statement (not found)”

+ 2 - 1
huimv-cattle/src/main/resources/application.properties

@@ -1,6 +1,7 @@
 #spring.profiles.active=dev
 #spring.profiles.active=dev
 #spring.profiles.active=prod
 #spring.profiles.active=prod
-spring.profiles.active=prod2
+#spring.profiles.active=prod2
+spring.profiles.active=prod3
 
 
 manager.defaultPassword=123456
 manager.defaultPassword=123456
 user.defaultPassword=123456
 user.defaultPassword=123456