Bladeren bron

system and basic springboot up 2.3

hanqingsong 3 jaren geleden
bovenliggende
commit
0f17cf83cf
3 gewijzigde bestanden met toevoegingen van 11 en 18 verwijderingen
  1. 3 8
      pom.xml
  2. 0 2
      src/main/java/com/chinaitop/depot/DepotSystemApplication.java
  3. 8 8
      src/main/resources/bootstrap.yml

+ 3 - 8
pom.xml

@@ -5,7 +5,7 @@
5 5
     <parent>
6 6
         <groupId>org.springframework.boot</groupId>
7 7
         <artifactId>spring-boot-starter-parent</artifactId>
8
-        <version>2.1.2.RELEASE</version>
8
+        <version>2.3.12.RELEASE</version>
9 9
         <relativePath/> <!-- lookup parent from repository -->
10 10
     </parent>
11 11
     <groupId>com.chinaitop</groupId>
@@ -15,7 +15,8 @@
15 15
 
16 16
     <properties>
17 17
         <java.version>1.8</java.version>
18
-        <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
18
+        <skipTests>true</skipTests>
19
+        <spring-cloud.version>Hoxton.SR12</spring-cloud.version>
19 20
     </properties>
20 21
 
21 22
     <dependencies>
@@ -112,12 +113,6 @@
112 113
 		    <artifactId>commons-io</artifactId>
113 114
 		    <version>1.3.2</version>
114 115
 		</dependency>
115
-		
116
-        <dependency>
117
-            <groupId>org.springframework.boot</groupId>
118
-            <artifactId>spring-boot-starter-test</artifactId>
119
-            <scope>test</scope>
120
-        </dependency>
121 116
         <!-- 阿里巴巴json -->
122 117
 		<dependency>
123 118
 			<groupId>com.alibaba</groupId>

+ 0 - 2
src/main/java/com/chinaitop/depot/DepotSystemApplication.java

@@ -3,13 +3,11 @@ package com.chinaitop.depot;
3 3
 import org.mybatis.spring.annotation.MapperScan;
4 4
 import org.springframework.boot.SpringApplication;
5 5
 import org.springframework.boot.autoconfigure.SpringBootApplication;
6
-import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
7 6
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
8 7
 import org.springframework.cloud.openfeign.EnableFeignClients;
9 8
 import org.springframework.transaction.annotation.EnableTransactionManagement;
10 9
 
11 10
 @EnableEurekaClient
12
-@EnableDiscoveryClient
13 11
 @SpringBootApplication
14 12
 @EnableFeignClients
15 13
 @EnableTransactionManagement

+ 8 - 8
src/main/resources/bootstrap.yml

@@ -7,7 +7,7 @@ server:
7 7
 eureka:
8 8
   client:
9 9
     service-url:
10
-      defaultZone: http://172.16.0.46:9511/eureka/
10
+      defaultZone: http://172.16.0.8:9001/eureka/,http://172.16.0.9:9001/eureka/
11 11
   instance:
12 12
     prefer-ip-address: true
13 13
     # 每隔10s发送一次心跳(默认30s)
@@ -21,22 +21,22 @@ spring:
21 21
   # 数据库配置
22 22
   datasource:
23 23
     driverClassName: com.mysql.cj.jdbc.Driver
24
-    url: jdbc:mysql://172.16.0.5:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
24
+    url: jdbc:mysql://101.36.160.140:10311/depot_yunnan?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
25 25
     username: root
26 26
     password: 123456
27 27
   # 缓存配置
28 28
   session:
29 29
     store-type: redis
30 30
   redis:
31
-    database: 1
32
-    host: 172.16.0.46
33
-    port: 6679
31
+    database: 13
32
+    host: 172.16.0.2
33
+    port: 6379
34 34
     password: 123456
35
-    timeout: 3000
35
+    timeout: 3000ms
36 36
     jedis:
37 37
       pool:
38 38
         max-active: 8
39
-        max-wait: -1
39
+        max-wait: -1ms
40 40
         max-idle: 8
41 41
         min-idle: 0
42 42
   # 静态资源配置
@@ -47,7 +47,7 @@ web:
47 47
   upload-path: /upload
48 48
 
49 49
 #设置全局变量判断是云端还是库端;1云端,2本地
50
-localOrCloud: 1
50
+localOrCloud: 2
51 51
 
52 52
 #设置出入库连接
53 53
 forTheConnection: http://101.36.160.210:9901/Base/Main.action