Skip to content

Commit 1e017ba

Browse files
committed
demos update
1 parent b8bdb0c commit 1e017ba

File tree

6 files changed

+42
-60
lines changed

6 files changed

+42
-60
lines changed

demo-book-service/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
<groupId>org.springdoc</groupId>
2020
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
2121
</dependency>
22-
<dependency>
23-
<groupId>org.springframework.boot</groupId>
24-
<artifactId>spring-boot-starter-validation</artifactId>
25-
</dependency>
2622
<!-- Runtime library -->
2723
<dependency>
2824
<groupId>com.github.therapi</groupId>

demo-microservices/config-service/src/main/resources/config/gateway-service.yml

Lines changed: 42 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -19,46 +19,48 @@ logging:
1919
spring:
2020
cloud:
2121
gateway:
22-
httpclient:
23-
ssl:
24-
useInsecureTrustManager: true
25-
discovery:
26-
locator:
27-
enabled: true
28-
routes:
29-
- id: employee-service
30-
uri: lb://employee-service
31-
predicates:
32-
- Path=/employee/**, /demo-microservices/employee/**
33-
filters:
34-
- ContextPathRewritePath=/demo-microservices/employee/(?<path>.*), /$\{path}
35-
- RewritePath=/employee/(?<path>.*), /$\{path}
36-
- id: department-service
37-
uri: lb://department-service
38-
predicates:
39-
- Path=/department/**, /demo-microservices/department/**
40-
filters:
41-
- ContextPathRewritePath=/demo-microservices/department/(?<path>.*), /$\{path}
42-
- RewritePath=/department/(?<path>.*), /$\{path}
43-
- id: organization-service
44-
uri: lb://organization-service
45-
predicates:
46-
- Path=/organization/**, /demo-microservices/organization/**
47-
filters:
48-
- ContextPathRewritePath=/demo-microservices/organization/(?<path>.*), /$\{path}
49-
- RewritePath=/organization/(?<path>.*), /$\{path}
50-
- id: openapi-proxy
51-
uri: https://demos.springdoc.org
52-
predicates:
53-
- Path=/demo-microservices/v3/api-docs/**
54-
filters:
55-
- RewritePath=/demo-microservices/v3/api-docs/(?<path>.*), /demo-microservices/$\{path}/v3/api-docs
56-
- id: openapi
57-
uri: http://localhost:${server.port}
58-
predicates:
59-
- Path=/v3/api-docs/**
60-
filters:
61-
- RewritePath=/v3/api-docs/(?<path>.*), /$\{path}/v3/api-docs
22+
server:
23+
webflux:
24+
httpclient:
25+
ssl:
26+
useInsecureTrustManager: true
27+
discovery:
28+
locator:
29+
enabled: true
30+
routes:
31+
- id: employee-service
32+
uri: lb://employee-service
33+
predicates:
34+
- Path=/employee/**, /demo-microservices/employee/**
35+
filters:
36+
- ContextPathRewritePath=/demo-microservices/employee/(?<path>.*), /$\{path}
37+
- RewritePath=/employee/(?<path>.*), /$\{path}
38+
- id: department-service
39+
uri: lb://department-service
40+
predicates:
41+
- Path=/department/**, /demo-microservices/department/**
42+
filters:
43+
- ContextPathRewritePath=/demo-microservices/department/(?<path>.*), /$\{path}
44+
- RewritePath=/department/(?<path>.*), /$\{path}
45+
- id: organization-service
46+
uri: lb://organization-service
47+
predicates:
48+
- Path=/organization/**, /demo-microservices/organization/**
49+
filters:
50+
- ContextPathRewritePath=/demo-microservices/organization/(?<path>.*), /$\{path}
51+
- RewritePath=/organization/(?<path>.*), /$\{path}
52+
- id: openapi-proxy
53+
uri: https://demos.springdoc.org
54+
predicates:
55+
- Path=/demo-microservices/v3/api-docs/**
56+
filters:
57+
- RewritePath=/demo-microservices/v3/api-docs/(?<path>.*), /demo-microservices/$\{path}/v3/api-docs
58+
- id: openapi
59+
uri: http://localhost:${server.port}
60+
predicates:
61+
- Path=/v3/api-docs/**
62+
filters:
63+
- RewritePath=/v3/api-docs/(?<path>.*), /$\{path}/v3/api-docs
6264

6365
springdoc:
6466
cache:

demo-oauth2/oauth-resource-server-webflux/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828
<groupId>com.h2database</groupId>
2929
<artifactId>h2</artifactId>
3030
</dependency>
31-
<dependency>
32-
<groupId>org.springframework.boot</groupId>
33-
<artifactId>spring-boot-starter-validation</artifactId>
34-
</dependency>
3531
<!-- OpenAPI 3 -->
3632
<dependency>
3733
<groupId>org.springdoc</groupId>

demo-oauth2/oauth-resource-server-webmvc/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828
<groupId>com.h2database</groupId>
2929
<artifactId>h2</artifactId>
3030
</dependency>
31-
<dependency>
32-
<groupId>org.springframework.boot</groupId>
33-
<artifactId>spring-boot-starter-validation</artifactId>
34-
</dependency>
3531
<!-- OpenAPI 3 -->
3632
<dependency>
3733
<groupId>org.springdoc</groupId>

demo-person-service/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
<groupId>org.springdoc</groupId>
2222
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
2323
</dependency>
24-
<dependency>
25-
<groupId>org.springframework.boot</groupId>
26-
<artifactId>spring-boot-starter-validation</artifactId>
27-
</dependency>
2824
<dependency>
2925
<groupId>org.javamoney.moneta</groupId>
3026
<artifactId>moneta-core</artifactId>

demo-spring-data-rest/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
<groupId>org.springdoc</groupId>
3636
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
3737
</dependency>
38-
<dependency>
39-
<groupId>org.springframework.boot</groupId>
40-
<artifactId>spring-boot-starter-validation</artifactId>
41-
</dependency>
4238
</dependencies>
4339
<build>
4440
<plugins>

0 commit comments

Comments
 (0)