简体   繁体   English

Spring 引导应用程序中的资源

[英]Resources in Spring Boot Appliacation

I have developed a Spring Boot Application and I am looking for a comprehensive list of all the resources that needs to be cleaned or taken extra care of before killing the app.我已经开发了一个 Spring 引导应用程序,我正在寻找一个完整的列表,列出在杀死应用程序之前需要清理或特别注意的所有资源。 To name a few, the Database Connection pool needs to be cleaned.仅举几例,需要清理数据库连接池。 What are the other resources that I should take care of to graceful shutdown the app?为了优雅地关闭应用程序,我应该注意哪些其他资源? Thanks谢谢

You do not need to explicitly clean any of the resources, Spring boot is intelligent enough to clean any resources that it was using.您不需要显式清理任何资源,Spring 引导足够智能,可以清理它正在使用的任何资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM