现在打算学习 IDEA 和 JFinal 框架。 不使用 JFinal 教程中的 jetty,使用 tomcat。之前没用过框架。 现在创建了两个类,一个是 config 类,一个是 controller 类。在 controller 类中加入方法: public void index(){ renderText("hello world111111111111111111"); } 配置好 web.xml 后,启动 tomcat,可以在页面显示出“ hello world111111111111111111 ” 但如果修改了 renderText 中的字符串,页面不会同步更新,必须重启 tomcat 才行。
有没有办法可以不重启 tomcat 而更新页面的设置方法?
注:自动编译已经开启,“ update classes and resources ”之类的设置也已经开启,HTML 页面和 JSP 页面都可以自动更新了。
![]() | 1 guodong110 2018-10-05 11:39:05 +08:00 via Android 可以试试 jrebel |
2 aa6563679 2018-10-05 11:46:56 +08:00 via iPhone 类文件不会自动重新加载。可以配置 tomcat 文件改动自动部署(不好用)。最好还是用 jrebel |
![]() | 3 jzq526 OP @guodong110 @guodong110 非常感谢,我研究一下 jrebel |
![]() | 4 tachikomachann 2018-10-05 13:48:01 +08:00 via Android jrebrl 没有免费版可用了。。 |
![]() | 5 jzq526 OP |