I'm reading the Spring boot reference guide about the developer tools, and it mentions the following:
As DevTools monitors classpath resources, the only way to trigger a restart is to update the classpath. The way in which you cause the classpath to be updated depends on the IDE that you are using. In Eclipse, saving a modified file will cause the classpath to be updated and trigger a restart. In IntelliJ IDEA, building the project (
Build → Make Project
) will have the same effect.
I'm confused, what does "update the classpath" mean? More precisely:
- If I modify a file within my IDE, it doesn't appear to update the classpath, is this correct?
- If I click "Build" in IntelliJ, it does appear to update the classpath, but what exactly did the IDE just do?