Set reloadable
attribute of <Context>
element in context.xml
to true
.
<Context reloadable="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:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…