Need to add 'spring-boot-devtools' dependency
ibuziuk opened this issue · 1 comments
IMO, in general it would be great if all the samples and not only this particular spring-boot-crud-booster
quickstart would have spring boot devtools dependency [1]. This would allow features like automatic restarts [2] being enabled OOTB. Some notes from the official docs:
Developer tools are automatically disabled when running a fully packaged application. If your application is launched using java -jar or if it’s started using a special classloader, then it is considered a “production application”. Flagging the dependency as optional is a best practice that prevents devtools from being transitively applied to other modules using your project. Gradle does not support optional dependencies out-of-the-box so you may want to have a look to the propdeps-plugin in the meantime.
[1] https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html
[2] https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html#using-boot-devtools-restart