简体   繁体   中英

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?

There is a way around it. If you change just aa 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).

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM