<Context path="/examples" docBase="examples" debug="0" reloadable="true" crossContext="true">tomcat/conf/server.xmlIf u recompile the java bean,the tomcat would find it and print the message in the console dialog.Here is the example:WebappClassLoader: Resource '/WEB-INF/classes/TEST/MyBean.class' was modified; Date is now: Tue Sep 16 12:10:00 CST 2003 Was: Tue Sep 16 11:07:38 CST 2003 init la
tomcat要该bean当然要重启,你设成scope=request,提交范围外当然不起作用!
reloadable=true 怎么设置的?tomcat要该bean当然要重启?但我没有在其它地方调用,只是先运行一遍,好使,我没关此网面,在开发环境中修改了一下bean,然后再刷新刚才那页面,没啥变化(跟没改bean一样),所以我认为看是否是原来bean的实例没销毁
reloadable="true" crossContext="true">tomcat/conf/server.xmlIf u recompile the java bean,the tomcat would find it and print the message in the console dialog.Here is the example:WebappClassLoader: Resource '/WEB-INF/classes/TEST/MyBean.class' was modified;
Date is now: Tue Sep 16 12:10:00 CST 2003 Was: Tue Sep 16 11:07:38 CST 2003
init la