Explorar o código

增加对青山牧场配置

zhuoning %!s(int64=2) %!d(string=hai) anos
pai
achega
2ca1cba99d

+ 0 - 0
doc/丽水绿洲种猪场项目.txt


+ 0 - 0
doc/青莲集团项目.txt


+ 4 - 0
huimv-eartag2-admin/pom.xml

@@ -9,7 +9,10 @@
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
+    <groupId>com.huimv</groupId>
+<!--    <artifactId>huimv-env-admin</artifactId>-->
     <artifactId>huimv-eartag2-admin</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
 
     <dependencies>
         <!-- eartag2-common -->
@@ -69,6 +72,7 @@
         </dependency>
     </dependencies>
     <build>
+        <finalName>huimv-env-admin-0.0.1-SNAPSHOT</finalName>
         <plugins>
             <!--  -->
             <plugin>

+ 106 - 0
huimv-eartag2-admin/src/main/resources/application-qingshan.yml

@@ -0,0 +1,106 @@
+server:
+  port: 10061
+spring:
+  application:
+    name: huimv-eartag2-admin
+
+  datasource:
+    url: jdbc:mysql://122.112.224.199:3306/huimv-env-platform-qingshan?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: qingshan
+    password: qingshan@2022
+    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: /
+  rabbitmq:
+    host: 121.36.134.218
+    port: 5672
+    username: admin
+    password: admin
+    #虚拟host 可以不设置,使用server默认host
+    virtual-host: /
+    listener:
+      simple:
+        acknowledge-mode: none
+
+  #redis
+  redis:
+    database: 0
+    host: 121.36.134.218
+    port: 6379
+    password: hm123456
+    timeout: 5000ms
+    jedis:
+      pool:
+        max-active: 20
+        max-wait: -1
+        max-idle: 10
+        min-idle: 0
+
+  #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://192.168.1.7: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
+

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

@@ -1,5 +1,6 @@
 #spring.profiles.active=dev
-spring.profiles.active=lishui
+#spring.profiles.active=lishui
+spring.profiles.active=qingshan
 
 device.register.prefix=device_register_
 redis.expire.eartag_online_set=25

+ 3 - 1
huimv-farm-gateway/pom.xml

@@ -11,7 +11,8 @@
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.huimv</groupId>
-    <artifactId>huimv-farm-gateway</artifactId>
+<!--    <artifactId>huimv-farm-gateway</artifactId>-->
+    <artifactId>huimv-env-gateway</artifactId>
     <version>0.0.1</version>
 
     <properties>
@@ -56,6 +57,7 @@
     </dependencyManagement>
 
     <build>
+<!--        <finalName>huimv-env-gateway-0.0.1-SNAPSHOT</finalName>-->
         <plugins>
             <plugin>
                 <groupId>org.springframework.boot</groupId>

+ 40 - 0
huimv-farm-gateway/src/main/resources/application-qingshan.yml

@@ -0,0 +1,40 @@
+server:
+  port: 10060
+
+spring:
+  application:
+    name: env-gateway
+  cloud:
+    gateway:
+      enabled: true
+      routes:
+        - id: admin
+          uri: http://127.0.0.1:10061
+          predicates:
+            - Path=/admin/**
+          filters:
+            - StripPrefix=1
+        - id: video
+          uri: http://127.0.0.1:10062
+          predicates:
+            - Path=/video/**
+          filters:
+            - StripPrefix=1
+        - id: manage
+          uri: http://127.0.0.1:10063
+          predicates:
+            - Path=/manage/**
+          filters:
+            - StripPrefix=1
+        - id: produce
+          uri: http://127.0.0.1:10064
+          predicates:
+            - Path=/produce/**
+          filters:
+            - StripPrefix=1
+
+logging:
+  level:
+    org.springframework.cloud.gateway: debug  # Gateway调试模式
+
+

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

@@ -1,2 +1,3 @@
 #spring.profiles.active=dev
-spring.profiles.active=lishui
+#spring.profiles.active=lishui
+spring.profiles.active=qingshan

+ 2 - 0
huimv-farm-video/pom.xml

@@ -75,6 +75,8 @@
 	</dependencies>
 
 	<build>
+		<!-- 青山项目打包名称 -->
+		<finalName>huimv-env-video-0.0.1-SNAPSHOT</finalName>
 		<plugins>
 			<plugin>
 				<groupId>org.springframework.boot</groupId>

+ 37 - 0
huimv-farm-video/src/main/resources/application-qingshan.yml

@@ -0,0 +1,37 @@
+server:
+  port: 10062
+spring:
+  application:
+    name: huimv-farm-video
+  #------DataSource-----
+  datasource:
+    url: jdbc:mysql://122.112.224.199:3306/huimv-env-platform-qingshan?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: qingshan
+    password: qingshan@2022
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      ddl-auto: update
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
+  redis:
+    host: 122.112.224.199
+    port: 6379
+    password: hm123456
+# Socket配置
+#socket:
+  # 监听端口 9001
+#  listen:
+#    #ip: 192.168.16.3
+#    ip: 192.168.1.49
+#    port: 10020
+  # 线程池 - 保持线程数 20
+  #pool-keep: 20
+  # 线程池 - 核心线程数 10
+  #pool-core: 10
+  # 线程池 - 最大线程数 20
+  #pool-max: 30
+  # 线程队列容量 10
+  #pool-queue-init: 10
+#mybatis-plus:
+#  configuration:
+#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

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

@@ -3,4 +3,5 @@
 #spring.profiles.active=demo
 #spring.profiles.active=prod
 #spring.profiles.active=prod2e
-spring.profiles.active=lishui
+#spring.profiles.active=lishui
+spring.profiles.active=qingshan