Reputation: 11071
I have SpringBoot application in NetBeans 8.2 When it's run I can change content of static .js, .css, etc. files and see changes after web page refresh in browser.
If I change some controller code I need to stop my application and than start it again what is quite annoying.
Is it possible to configure Netbeans to see those changes without restart?
Upvotes: 1
Views: 578
Reputation: 1
For automatic building and restarting of (Spring Boot) application, please add this dependency:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
Upvotes: 0
Reputation: 8421
There is a way around it. If you change just a a method body and your application is running in debug mode, you can just apply code changes (see this question). This will not work if you modify class structures (new methods, annotations and such).
If you need more, you can use DCEVM (for class modifications) or JRebel (commercial, but very capable).
Upvotes: 2