Assume I have a controller:
After I start up spring boot application, then connect to http://localhost:8080/.
The page will look like:
If I would to change some wording in the sayHello() method, and I hope it takes effect immediately.
How to fulfill this requirement?
Add spring-boot-devtools dependency in pom.xml
Update application.yml, and set spring.devtools.restart.enabled=true
When you set this property, immediately it takes effect and you need not manually stop and start the spring boot application.