Answer the question
In order to leave comments, you need to log in
Does Java EE need to redeploy a project every time when developing on TomCat?
Hello everyone, please tell me) When developing a project on Java EE + TomCat 7 + Maven, each time you need to restart the server when changing files (jsp, css ...)? Clean, install, reboot? If there is a quick way please tell me)
Answer the question
In order to leave comments, you need to log in
Use the IDE to develop your application. For example, Eclipse does not re-deploy the application to the server when changing jsp, js, css, etc. files. Accordingly, by changing the styles, you can almost immediately see the result in the browser.
Deploy occurs only when changing java classes, configurations, etc.
I suggest 3 ways:
1) Use Spring loaded ,
in Tomcat launch options you only need to specify "JAVA_OPTS=-javaagent:C:\springloaded-1.2.5.RELEASE.jar -noverify"
2) Use HotSwap Agent , you will need to patch your Java " DCEVM Java patch" and specify the agent in Tomcat launch options, for example:
JAVA_OPTS=-XXaltjvm=dcevm -javaagent:C:\hotswap-agent.jar
in these two cases, you need to copy the compiled classes to the server folder,
for example, Eclipse has File Synchronization Plugin, you can also use Hot Deploy from the IDE
3) Run the application in Debug mode and use Hot Deploy from your IDE
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question