Reputation: 71
When I change method signature of Controller class, eclipse ask if server need to be restarted. Why do we need to restart server in this case for change to be reflected? For any other changes in class file NO restart is needed but the changes done are reflected.
Upvotes: 3
Views: 178
Reputation: 341003
You are using a mechanism called Hot Swap which allows you to change method body without restarting the JVM. Unfortunately this is the only supported mechanism. Check out jrebel (commercial) which supports many other refactorings/changes.
Upvotes: 3