How to continuously deploy changes in JSF project without restarting Tomcat?

后端 未结 2 1096
醉梦人生
醉梦人生 2021-01-27 01:45

I have a JSF project in Eclipse. Now every time I make changes to the .xhtml files, I have to stop Tomcat server, and then start Tomcat server again. Is there any o

2条回答
  •  失恋的感觉
    2021-01-27 02:04

    facelets.REFRESH_PERIOD:
    interval compiler checks for page changes – lower values useful during development

      
    facelets.REFRESH_PERIOD  
    2  
    
    
          (or)
    
      
    facelets.REFRESH_PERIOD  
    1  
    
    
    • you can set any one of the above.
      change in web.xml
    • set to -1 if you don't want to effect changes made.(default value)
    • check this link.

    Edit: as @BalusC told, above will work for jsf 1.x, For jsf 2.X change publishing settings and javax.faces.PROJECT_STAGE in web.xml.

提交回复
热议问题