Selaa lähdekoodia

system and basic springboot up 2.3

hanqingsong 3 vuotta sitten
vanhempi
commit
0f17cf83cf

+ 3 - 8
pom.xml

@@ -5,7 +5,7 @@
5
     <parent>
5
     <parent>
6
         <groupId>org.springframework.boot</groupId>
6
         <groupId>org.springframework.boot</groupId>
7
         <artifactId>spring-boot-starter-parent</artifactId>
7
         <artifactId>spring-boot-starter-parent</artifactId>
8
-        <version>2.1.2.RELEASE</version>
8
+        <version>2.3.12.RELEASE</version>
9
         <relativePath/> <!-- lookup parent from repository -->
9
         <relativePath/> <!-- lookup parent from repository -->
10
     </parent>
10
     </parent>
11
     <groupId>com.chinaitop</groupId>
11
     <groupId>com.chinaitop</groupId>
@@ -15,7 +15,8 @@
15
 
15
 
16
     <properties>
16
     <properties>
17
         <java.version>1.8</java.version>
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
     </properties>
20
     </properties>
20
 
21
 
21
     <dependencies>
22
     <dependencies>
@@ -112,12 +113,6 @@
112
 		    <artifactId>commons-io</artifactId>
113
 		    <artifactId>commons-io</artifactId>
113
 		    <version>1.3.2</version>
114
 		    <version>1.3.2</version>
114
 		</dependency>
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
         <!-- 阿里巴巴json -->
116
         <!-- 阿里巴巴json -->
122
 		<dependency>
117
 		<dependency>
123
 			<groupId>com.alibaba</groupId>
118
 			<groupId>com.alibaba</groupId>

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

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

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

@@ -7,7 +7,7 @@ server:
7
 eureka:
7
 eureka:
8
   client:
8
   client:
9
     service-url:
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
   instance:
11
   instance:
12
     prefer-ip-address: true
12
     prefer-ip-address: true
13
     # 每隔10s发送一次心跳(默认30s)
13
     # 每隔10s发送一次心跳(默认30s)
@@ -21,22 +21,22 @@ spring:
21
   # 数据库配置
21
   # 数据库配置
22
   datasource:
22
   datasource:
23
     driverClassName: com.mysql.cj.jdbc.Driver
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
     username: root
25
     username: root
26
     password: 123456
26
     password: 123456
27
   # 缓存配置
27
   # 缓存配置
28
   session:
28
   session:
29
     store-type: redis
29
     store-type: redis
30
   redis:
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
     password: 123456
34
     password: 123456
35
-    timeout: 3000
35
+    timeout: 3000ms
36
     jedis:
36
     jedis:
37
       pool:
37
       pool:
38
         max-active: 8
38
         max-active: 8
39
-        max-wait: -1
39
+        max-wait: -1ms
40
         max-idle: 8
40
         max-idle: 8
41
         min-idle: 0
41
         min-idle: 0
42
   # 静态资源配置
42
   # 静态资源配置
@@ -47,7 +47,7 @@ web:
47
   upload-path: /upload
47
   upload-path: /upload
48
 
48
 
49
 #设置全局变量判断是云端还是库端;1云端,2本地
49
 #设置全局变量判断是云端还是库端;1云端,2本地
50
-localOrCloud: 1
50
+localOrCloud: 2
51
 
51
 
52
 #设置出入库连接
52
 #设置出入库连接
53
 forTheConnection: http://101.36.160.210:9901/Base/Main.action
53
 forTheConnection: http://101.36.160.210:9901/Base/Main.action