File tree 9 files changed +49
-24
lines changed
store-base/store-build-chassis
java/com/siriusxi/cloud/infra/gateway
test/java/com/siriusxi/cloud/infra/gateway
eureka-server/src/main/resources
product-service/src/main/resources
recommendation-service/src/main/resources
review-service/src/main/resources
store-service/src/main/resources
9 files changed +49
-24
lines changed Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >org.springframework.boot</groupId >
8
8
<artifactId >spring-boot-starter-parent</artifactId >
9
- <version >2.3.0.M4 </version >
9
+ <version >2.3.0.RC1 </version >
10
10
<relativePath /> <!-- lookup parent from repository -->
11
11
</parent >
12
12
Original file line number Diff line number Diff line change 7
7
import org .springframework .web .reactive .function .client .WebClient ;
8
8
9
9
@ SpringBootApplication
10
- public class EdgeServerApplication {
10
+ public class EdgeServer {
11
11
12
12
@ Bean
13
13
@ LoadBalanced
@@ -16,7 +16,7 @@ public WebClient.Builder loadBalancedWebClientBuilder() {
16
16
}
17
17
18
18
public static void main (String [] args ) {
19
- SpringApplication .run (EdgeServerApplication .class , args );
19
+ SpringApplication .run (EdgeServer .class , args );
20
20
}
21
21
22
22
}
Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ spring:
35
35
predicates :
36
36
- Path=/eureka/**
37
37
38
+ server :
39
+ error :
40
+ include-message : always
41
+ include-binding-errors : always
42
+
38
43
eureka :
39
44
instance :
40
45
hostname : localhost
Original file line number Diff line number Diff line change 9
9
@ SpringBootTest (
10
10
webEnvironment = RANDOM_PORT ,
11
11
properties = {"eureka.client.enabled: false" })
12
- class EdgeServerApplicationTests {
12
+ class EdgeServerTests {
13
13
14
14
@ Test
15
15
void contextLoads () {
Original file line number Diff line number Diff line change 5
5
# It is recommended switching to BlockingLoadBalancerClient instead.
6
6
cloud.loadbalancer.ribbon.enabled : false
7
7
8
- server.port : 8761
8
+ server :
9
+ port : 8761
10
+ # # Should be included to show message, if not error message will be empty
11
+ error :
12
+ include-message : always
13
+ include-binding-errors : always
9
14
10
15
logging.level :
11
16
com.netflix :
Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ spring:
45
45
46
46
server :
47
47
port : 9081
48
+ error :
49
+ include-message : always
50
+ include-binding-errors : always
48
51
49
52
logging.level :
50
53
web : DEBUG
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ spring:
44
44
45
45
server :
46
46
port : 9082
47
+ error :
48
+ include-message : always
49
+ include-binding-errors : always
47
50
48
51
logging.level :
49
52
web : DEBUG
Original file line number Diff line number Diff line change 5
5
open-in-view : false
6
6
database : MYSQL
7
7
properties.hibernate.dialect : org.hibernate.dialect.MySQL8Dialect
8
- # Strongly recommend to set this property to "none" or with flyway to "validate" in a
9
- # production environment!
8
+ # Strongly recommend to set this property to "none" or with flyway to "validate" in a
9
+ # production environment!
10
10
hibernate.ddl-auto : none
11
11
datasource :
12
12
# # You often do not need to specify the driver-class-name,
@@ -41,13 +41,13 @@ spring:
41
41
defaultBinder : rabbit
42
42
default.contentType : application/json
43
43
bindings.input :
44
- destination : reviews
45
- group : reviewsGroup
46
- consumer :
47
- maxAttempts : 3
48
- backOffInitialInterval : 500
49
- backOffMaxInterval : 1000
50
- backOffMultiplier : 2.0
44
+ destination : reviews
45
+ group : reviewsGroup
46
+ consumer :
47
+ maxAttempts : 3
48
+ backOffInitialInterval : 500
49
+ backOffMaxInterval : 1000
50
+ backOffMultiplier : 2.0
51
51
rabbit.bindings.input.consumer :
52
52
autoBindDlq : true
53
53
republishToDlq : true
66
66
rabbitmq.host : 127.0.0.1
67
67
kafka.broker : 127.0.0.1
68
68
69
- server.port : 9083
69
+ server :
70
+ port : 9083
71
+ error :
72
+ include-message : always
73
+ include-binding-errors : always
70
74
71
75
logging.level :
72
- web : DEBUG
73
- root : INFO
74
- com.siriusxi.ms.store : DEBUG
75
- org :
76
- hibernate :
77
- SQL : DEBUG
78
- type.descriptor.sql.BasicBinder : TRACE
76
+ web : DEBUG
77
+ root : INFO
78
+ com.siriusxi.ms.store : DEBUG
79
+ org :
80
+ hibernate :
81
+ SQL : DEBUG
82
+ type.descriptor.sql.BasicBinder : TRACE
79
83
80
84
management :
81
85
info.git :
@@ -108,7 +112,8 @@ spring:
108
112
datasource :
109
113
url : " jdbc:mysql://${app.database.host}/${app.database.schema}"
110
114
111
- server.port : 8080
115
+ server :
116
+ port : 8080
112
117
113
118
eureka :
114
119
instance :
Original file line number Diff line number Diff line change 1
1
# Server configs
2
- server.port : 9080
2
+ server :
3
+ port : 9080
4
+ error :
5
+ include-message : always
6
+ include-binding-errors : always
3
7
4
8
spring :
5
9
application.name : store
You can’t perform that action at this time.
0 commit comments