servlet或其它的.class文件做了改动的话就一定要重启服务
解决方案 »
- 关于map集合判断的问题,求解答
- 学习J2EE知识。想了解J2EE框架。J2EE导论方面的教材,哪个较好?
- Struts验证框架的比较奇怪的问题
- JDBC连接SQL SERVER问题
- 狂晕,为什么装不了server2000???
- 是MVC的错,还是我的错?对MVC的迷惑之处,请大家指点
- java实现的FTP文件夹上传只能传tomcat服务器上的文件夹
- 给oracle插入图片报错了
- (非代码)中序遍历二叉树的序列~
- 如何实现把Excel文件内容导入到Sqlserver2000数据库中?在线等待....
- 我急需一个JSP+sql2000编写的论坛,哪位能提供一个完整的例子,不胜感激----在线等待
- 请诸位高手帮帮忙!
The next step is to tell Tomcat to check the modification dates of the class files of requested servlets and reload ones that have changed since they were loaded into the server's memory. This degrades performance in deployment situations, so is turned off by default. However, if you fail to turn it on for your development server, you'll have to restart the server every time you recompile a servlet that has already been loaded into the server's memory.
To turn on servlet reloading, edit install_dir/conf/server.xml and add a DefaultContext subelement to the main Service element and supply true for the reloadable attribute. The easiest way to do this is to find the following comment: <!-- Define properties for each web application. This is only needed
if you want to set non-default properties, or have web application
document roots in places other than the virtual host's appBase
directory. -->and insert the following line just below it:
<DefaultContext reloadable="true"/>
在server.xml中你所配置的Context结点中加上reloadable="true"属性就可以了。
系统里面默认的就是 reloadable="true",我还是更新不了CLASS文件啊