Title: Is a HotSwap possible with Spring MVC and Spring Security?
Tags: java;spring;maven;spring-mvc
Question: Currently I'm developing a Web App with Spring MVC and Spring Security using Maven to build the application and Tomcat as a webserver.
When I'm making changes in my JSP files, I can immediately see the changes (when the application is running) when I do a reload in my webbrowser.
However, when I make changes in my Java files (for instance in a Controller class), I have to redeploy the application (which takes 10 to 15 seconds) to get the changes working.
So my question is: Is there a way how to NOT do a redeploy every time when I perform changes in my Java classes?
Thank you very much!

Here is the accepted answer: Thanks for your responses. I tried some more options and this is working fine for me:
Go to Run / Edit Configurations / “Deployment” tab, clicks + icon / select an “exploded artifact”
Select “Server” tab, update the following options :
On ‘Update’ action -> Update classes and resources
On frame deactivation -> Update classes and resources
Run web application in Debug mode. Try to modify some codes or resources (Java files, ...), the modified classes and resources will be reloaded automatically without any redeploy or something like that.

Here is another answer: You can do a hot deploy using this plugin JRebel but if your build is only 10-15 seconds I think that a hot deploy is overkilling
Comment for this answer: "but if your build is only 10-15 seconds I think that a hot deploy is overkill" - Agreed.  And you have the additional problem of hot deploy not working, or filling the heap with uncollectable garbage, or causing unexpected things to happen that interfere with your debugging, etc

Here is another answer: We call what you would like to achive is Hot Deploy.
There are many different way to apply Hot Deploy, so the best way is to google for it.
If you use IntelliJ + Tomcat then this article can help you:
Intellij IDEA – Auto reload a web application (hot deploy)
If you use Eclipse IDE this can help: How to configure hot deploy in
Eclipse
You can find some info here as well: how to enable hot deploy in
tomcat

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 3, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2018:00:06/06/18', 'FavoriteCount': 1.0, 'PostTypeId': 1, 'Tags': '<java><spring><maven><spring-mvc>', 'Title': 'Is a HotSwap possible with Spring MVC and Spring Security?', 'ViewCount': 1489, 'id': 50714598, 'user_AboutMe': '', 'user_AccountId': 8102279.0, 'user_DisplayName': 'toniweser', 'user_Reputation': 45.0, 'user_Views': 3.0, 'user_id': 6104974.0}}