每一次对bean(java文件)进行修改编译后,要想看看运行结果,是不是都要重启tomcat

dawnming 2003-02-20 10:36:15
每一次对bean(java文件)进行修改编译后,要想看看运行结果,是不是都要重启tomcat才能看到啊?有什么好点的方法 吗,一直重启tomcat挺麻烦的。
...全文
98 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
凋零的老树 2003-02-20
  • 打赏
  • 举报
回复
改你虚拟目录的配置
reloadable="true"
upc_chenli 2003-02-20
  • 打赏
  • 举报
回复
1.如果你用4.1.18版(该版本是目前最稳定的版本)的tomcat。可以在http://127.0.0.1:8080/manager/html/
对你的应用进行reload。

2. reloadable (tomcat文档)
Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. You can use the Manager web application, however, to trigger reloads of deployed applications on demand.
freelarry 2003-02-20
  • 打赏
  • 举报
回复
把你的class文件放到classes文件夹里,等一下你会在tomcat窗口看到有文件被更新了,再调用就可以了
feeling_vb 2003-02-20
  • 打赏
  • 举报
回复
不用的
ghx2002_2000 2003-02-20
  • 打赏
  • 举报
回复
不用重新启动tomcat,,把bean存放原来的位置再刷新一下调用这个bean的jsp文件就行
flyingtiger 2003-02-20
  • 打赏
  • 举报
回复
运行:
http://localhost:8080/manager/reload?path=/你的应用程序

81,115

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧