牛叉的全自动部署,真是好东西
第一步:引入依赖<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
第二步:IDEA -- setting -- compiler -- Buile project automatically (打勾)第三步:.Ctrl + Shift + Alt + ? (或者Ctrl + Shift + A,搜索registry)
compiler.automake.allow.when.app.running (打勾)
第四步:.Chrome加上 liveReload 这个谷歌插件,后台有改动的时候,连页面都会自动刷新
提醒 : 大部分情况会自动部署成功,偶尔是需要重启的