每次在tomcat eclipse中进行调试时,都会重新加载Spring上下文 [英] Spring context is reloaded everytime there is a change during debugging in tomcat eclipse

查看:179
本文介绍了每次在tomcat eclipse中进行调试时,都会重新加载Spring上下文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个spring web应用程序。当我在eclipse中调试这个应用程序并且我更改任何java代码时,热代码替换开始弹簧上下文重新加载过程。有什么办法可以防止弹簧在调试时重新加载其上下文。
谢谢。

解决方案

如果您在Eclipse中使用Tomcat来调试Web应用程序,请尝试以下设置: p>


  1. 在服务器标签中双击您的服务器条目(例如Tomcat v7.0 Server on localhost)。


  2. 选择您的应用程序,然后点击编辑按钮。

  3. 取消选中启用自动重新加载。

  4. 点击菜单栏中的文件 - >保存。

希望这有帮助。 p>

I have a spring web application. When I debug this application in eclipse and I change any java code, hot code replacement starts spring context reloading process. Is there any way to prevent spring to reload its context while debugging. Thanks.

解决方案

If you are using Tomcat in Eclipse to debug your web application, try following setting:

  1. Double click your server entry (e.g. "Tomcat v7.0 Server at localhost") in the Servers tab.
  2. Click Modules tab at the bottom of the pane.
  3. Select your application and click edit button.
  4. Uncheck "Auto reloading enabled".
  5. Click File -> Save in the menu bar.

Hope this helps.

这篇关于每次在tomcat eclipse中进行调试时,都会重新加载Spring上下文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆