javaeclipsespring-bootmaveneclipse-jee

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


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.


Solution

  • 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