找到Tomcat下的conf目录 修改context.xml文件 将<Context>修改为<Context reloadable="true"> 每当在Myeclipse中保存Java文件的时候,Tomcat就会重新加载。