Why are my JSP changes are not reflected without restarting Tomcat?

前端 未结 12 1407
忘掉有多难
忘掉有多难 2020-12-02 18:48

I am editing JSP files which are residing directly inside tomcat/webapps/myapp/WEB-INF, but to see the changes, I have to restart the server. As far as I know,

12条回答
  •  不思量自难忘°
    2020-12-02 19:19

    I am using TomEE 1.7.2 on Windows 7 with Eclipse. The solution that worked for me was simply changing the web.xml file for the TomEE server at localhost-config (in my IDE) so that the development init param is true:

    
        jsp
        org.apache.jasper.servlet.JspServlet
        
            fork
            false
        
        
            xpoweredBy
            false
        
        
            development
            true
        
        3
    
    

提交回复
热议问题