Skip to content

Commit

Permalink
set spring.cloud.gateway.mvc.enabled=false for non-gateway component
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Jareš <[email protected]>
  • Loading branch information
pj892031 committed Oct 1, 2024
1 parent cd14f25 commit 57c5b27
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions api-catalog-services/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ spring:
client:
hostname: ${apiml.service.hostname}
ipAddress: ${apiml.service.ipAddress}
gateway.mvc.enabled: false
mvc:
throw-exception-if-no-handler-found: true
output:
Expand Down
1 change: 1 addition & 0 deletions caching-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ spring:
cloud:
compatibilityVerifier:
enabled: false # Should be removed when upgrade to Spring Cloud 3.x
gateway.mvc.enabled: false
application:
name: Caching service
mvc:
Expand Down
1 change: 1 addition & 0 deletions discovery-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spring:
client:
hostname: ${apiml.service.hostname}
ipAddress: ${apiml.service.ipAddress}
gateway.mvc.enabled: false
output:
ansi:
enabled: detect
Expand Down
1 change: 1 addition & 0 deletions zaas-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ spring:
client:
hostname: ${apiml.service.hostname}
ipAddress: ${apiml.service.ipAddress}
gateway.mvc.enabled: false
mvc:
throw-exception-if-no-handler-found: false # to suppress NoHandlerFoundException: No handler found for GET /error, we already provide error handling for requests
log-resolved-exception: false # Suppress useless logs from AbstractHandlerExceptionResolver
Expand Down

0 comments on commit 57c5b27

Please sign in to comment.