今天發現eclipse+tomcat(eclipse自帶插件) JSP修改後不生效問題,換掉tomcat服務目錄也不行。
![eclipse裏面的tomcat配置](https://img-blog.csdn.net/20150318103925252)
查看當前項目的server代碼code目錄,在temp裏面把該項目代碼全部刪除。
E:\projects.metadata.plugins\org.eclipse.wst.server.core
項目地址可以通過程序打印出來:String realNPath = Mvcs.getServletContext().getRealPath(File.separator) ;
再重新把eclipse裏面的tomcat配置刪除後,再重新配置一個。好了之後再次啓動tomcat服務。進入jsp頁面刷新一下就可以了