当java Web应用程序停止或者tomcat停止时,我需要优先保存一些数据.如何才能做到这一点?编辑:如果我使用jvm关闭钩子的任何缺点?
java web-applications shutdown
java ×1
shutdown ×1
web-applications ×1