最终效果:
java类或者html发生改动,只需要刷新网页就能获得更新后的效果,无需重启项目。
依赖:
org.springframework.boot spring-boot-devtoolstrue
org.springframework.boot spring-boot-starter-thymeleafnet.sourceforge.nekohtml nekohtml1.9.22
插件:
org.springframework.boot spring-boot-maven-plugintrue
然后两个步骤
1.
2.crtl+shift+alt+/,打开Registry



