Skip to content

Commit

Permalink
feat: 配置应用优雅关闭
Browse files Browse the repository at this point in the history
  • Loading branch information
liyifango authored Sep 19, 2022
1 parent 982dbc5 commit 4f51268
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ info.build.version=0.0.1-SNAPSHOT

spring.profiles.active=dev

# 开启error的message信息用于展现系统错误的用户提示
server.error.include-message=always
# 开启graceful shutdown功能, 确保服务器完成已接收到的请求
server.shutdown=graceful
spring.lifecycle.timeout-per-shutdown-phase=30s

mybatis-plus.mapper-locations=classpath*:mapper/**/*Dao.xml
mybatis-plus.global-config.db-config.column-underline=true
mybatis-plus.configuration.cache-enabled=false
Expand Down

0 comments on commit 4f51268

Please sign in to comment.