Skip to content

Commit

Permalink
perf($SpringBoot): enable shutdown gracefully
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
johnnymillergh committed Feb 8, 2021
1 parent 2947352 commit 6360027
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions api-gateway/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ server:
port: @api-gateway.port@
tomcat:
uri-encoding: @project.build.sourceEncoding@
shutdown: GRACEFUL

spring:
profiles:
Expand Down
3 changes: 2 additions & 1 deletion auth-center/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ server:
port: @auth-center.port@
tomcat:
uri-encoding: @project.build.sourceEncoding@
shutdown: GRACEFUL

spring:
profiles:
Expand All @@ -15,7 +16,7 @@ spring:
multipart:
# `location` specifies the directory where uploaded files will be stored. When not specified,
# a temporary directory will be used. ATTENTION: it may differ due to OS.
location: ~/Documents/@project.parent.artifactId@/@project.artifactId@/temprary-file
location: ~/Documents/@project.parent.artifactId@/${spring.application.name}/temprary-file
# `max-file-size` specifies the maximum size permitted for uploaded files. The default is 1MB. We set it as 64 MB.
max-file-size: 64MB
# `max-request-size` specifies the maximum size allowed for multipart/form-data requests. The default is 10MB.
Expand Down
3 changes: 2 additions & 1 deletion exercise-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ server:
port: @exercise-mis.port@
tomcat:
uri-encoding: @project.build.sourceEncoding@
shutdown: GRACEFUL

spring:
application:
Expand All @@ -17,7 +18,7 @@ spring:
multipart:
# `location` specifies the directory where uploaded files will be stored. When not specified,
# a temporary directory will be used. ATTENTION: it may differ due to OS.
location: ~/Documents/@project.parent.artifactId@/@project.artifactId@/temprary-file
location: ~/Documents/@project.parent.artifactId@/${spring.application.name}/temprary-file
# `max-file-size` specifies the maximum size permitted for uploaded files. The default is 1MB. We set it as 64 MB.
max-file-size: 64MB
# `max-request-size` specifies the maximum size allowed for multipart/form-data requests. The default is 10MB.
Expand Down
1 change: 1 addition & 0 deletions muscle-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ server:
port: @muscle-mis.port@
tomcat:
uri-encoding: @project.build.sourceEncoding@
shutdown: GRACEFUL

spring:
application:
Expand Down
1 change: 1 addition & 0 deletions spring-boot-admin/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ server:
port: @spring-boot-admin.port@
tomcat:
uri-encoding: @project.build.sourceEncoding@
shutdown: GRACEFUL

spring:
application:
Expand Down

0 comments on commit 6360027

Please sign in to comment.