我使用 intellij IDEA (12.x)。
Tomcat 6 下有 Spring MVC 应用程序。这就是我要做的:
我的步骤:
1. Run idea
2. Create new project -> Spring MVC application
现在配置一切以运行应用程序。
3. Start application (pressing green arrow on the top),
As a result I can see my "hello" message jsp - in browser
4. in the Controller I change "hello" to "hello123"
然后我想在浏览器页面中看到我的“hello123”。我的尝试:
5. refresh page - no result
6. Ctrl+Shift+F9 (compiling current controller class).
refresh page - no result
7. pressing "refresh" button in the tomcat server panel in IDEA.
the pop-up dialog appears: "update classes and resuources" option
is selected there by default. refresh page - no result
8. restart server - then yes - I can see result ("hello123" message)
将操作/等待时间最小化以尽可能快地获得结果以确保开发人员安全的最佳方法是什么?
在我的 tomcat 配置面板中,我有以下配置(实际上是默认配置):
On 'Update' action: Update classes and resources.
On frame deactivation: Do nothing
Before launch: Make; Build app:war exploded artifact