?Do u set the reloadable=true in context realm?

解决方案 »

  1.   

    不明白什么意思,要是bean里的方法,你不用它就不会调用啊。
    tomcat要该bean当然要重启,你设成scope=request,提交范围外当然不起作用!
      

  2.   

    谢谢两位
    reloadable=true 怎么设置的?tomcat要该bean当然要重启?但我没有在其它地方调用,只是先运行一遍,好使,我没关此网面,在开发环境中修改了一下bean,然后再刷新刚才那页面,没啥变化(跟没改bean一样),所以我认为看是否是原来bean的实例没销毁
      

  3.   

    <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