如何正确关闭spring Web应用程序?

时间:2015-01-26 09:57:06

标签: java spring tomcat

为了关闭我的应用程序,我一直使用系统调用System.exit()。但这是一个不好的做法。我尝试抛出RuntimeException,但tomcat服务器没有退出。 该应用程序基于Flex Web客户端并在tomcat服务器下运行。 是否有良好的做法终止它?类似于getSpringContext.exit()

0 个答案:

没有答案
相关问题