Having to restart tomcat whenever you make a change

后端 未结 8 988
名媛妹妹
名媛妹妹 2020-12-04 18:46

Is there a way around having to restart tomcat every time a small change is made in java code?

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 18:49

    Set reloadable attribute of element in context.xml to true.

    
    

    Then Tomcat will monitor changes in /WEB-INF/classes and /WEB-INF/lib and reload whenever appropriate.

    If you're using an IDE, this is configureable as server setting as well. Here's how it look like in Eclipse:

    alt text

提交回复
热议问题