Everytime i do any changes to java code, it won't reflect after i saves the file

1.2k views Asked by At

I am using Eclipse Neon for my java project, every time I do any changes to java code, it won't reflect after I save the file (for ex: a simple syso statement). I have to do maven clean and maven install my project then restarts the boot.

2

There are 2 answers

12
Gaurav Dhiman On BEST ANSWER

Add devtools dependency to your project in pom.xml (if spring boot project) :-

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-devtools</artifactId>
</dependency>

And enable Build Automatically in eclipse :-

enter image description here

1
Alien On

Ensure that Build Automatically option in Project->Build Automatically, is enabled.

Also try to update the project using Mvn > update project