Bläddra i källkod

修改线上gateway配置文件

songyh 4 år sedan
förälder
incheckning
d89eb8edfb

+ 9 - 32
jeecg-cloud-module/jeecg-cloud-gateway/pom.xml

@@ -11,14 +11,16 @@
 
     <artifactId>jeecg-cloud-gateway</artifactId>
     <dependencies>
+        <!-- jeecg 微服务基础依赖-->
         <dependency>
-            <groupId>com.alibaba.cloud</groupId>
-            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
-        </dependency>
-        <!-- 服务降级 -->
-        <dependency>
-            <groupId>com.alibaba.cloud</groupId>
-            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
+            <groupId>org.jeecgframework.boot</groupId>
+            <artifactId>jeecg-boot-starter-cloud</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.jeecgframework.boot</groupId>
+                    <artifactId>jeecg-system-cloud-api</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <!-- spring-cloud网关-->
         <dependency>
@@ -87,29 +89,4 @@
             </resource>
         </resources>
     </build>
-
-    <!-- 环境 -->
-    <profiles>
-        <!-- 开发 -->
-        <profile>
-            <id>dev-bak</id>
-            <properties>
-                <activatedProperties>dev-bak</activatedProperties>
-            </properties>
-        </profile>
-        <!-- 测试 -->
-        <profile>
-            <id>test</id>
-            <properties>
-                <activatedProperties>test</activatedProperties>
-            </properties>
-        </profile>
-        <!-- 生产 -->
-        <profile>
-            <id>prod</id>
-            <properties>
-                <activatedProperties>prod</activatedProperties>
-            </properties>
-        </profile>
-    </profiles>
 </project>

+ 12 - 0
jeecg-cloud-module/jeecg-cloud-gateway/src/main/resources/application-prod.yml

@@ -1,4 +1,16 @@
 spring:
+  redis:
+    database: 0
+    host: 172.30.0.17
+    password: hcst@2021..
+    port: 6379
+    lettuce:
+      pool:
+        max-active: 8   #最大连接数据库连接数,设 0 为没有限制
+        max-idle: 8     #最大等待连接中的数量,设 0 为没有限制
+        max-wait: -1ms  #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
+        min-idle: 0     #最小等待连接中的数量,设 0 为没有限制
+      shutdown-timeout: 100ms
   cloud:
     nacos:
       config: