Vitalii
Vitalii

Reputation: 11071

Netbeans 8.2: Is restarting a project required to see changes?

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

Answers (2)

Drishti Jain
Drishti Jain

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

J&#225;n Halaša
J&#225;n Halaša

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

Related Questions