I followed instructions from Spring website to try Spring DevTools and I cannot see the updated changes, even when i refresh my page.
I tried to include dependencies in build Gradle, but still fail. Many answers on Stack Overflow are outdated.
I followed instructions from Spring website to try Spring DevTools and I cannot see the updated changes, even when i refresh my page.
I tried to include dependencies in build Gradle, but still fail. Many answers on Stack Overflow are outdated.
It can be frustrating when you're not able to see the changes reflected in your Spring application while using Spring DevTools. There could be a few reasons why the changes are not being picked up. Here are some troubleshooting steps you can try:
build.gradle
file. You should have the following dependency:implementation 'org.springframework.boot:spring-boot-devtools'
Also, ensure that the DevTools plugin is enabled in your IDE settings. For example, in IntelliJ IDEA, go to Settings > Build, Execution, Deployment > Compiler
and check the "Build project automatically" option.
Build > Clean Project
and then Build > Rebuild Project
.application.properties
file:spring.devtools.restart.strategy=reload
src/main/java
and src/main/resources
. If your classes or resources are located outside these directories, they may not be detected by DevTools.If you have tried all of the above and are still not seeing the changes reflected, it may be helpful to share the relevant parts of your build.gradle
file and any error messages or warnings you are encountering. This will allow us to provide more specific guidance.