1.前言
这篇随笔记录spring boot 的配置流程 ,实际上 与 springMVC 项目 的配置差不多
2.操作
(1)导入依赖包
<!-- 热修改前端--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> <!-- 这个需要为 true 热部署才有效 --> </dependency>
(2)
操作步骤 : File >> Settings >>Build, Execution, Deployment >> Compiler ,
勾上“”Build project automatically"这个选框,保存
(3) 按住ctrl + alt+ shift + /, 选择第一个Registry
有时候ctrl + alt+ shift + / 打不开Registry
可以这样操作,双击shift 点击 actions,
勾选下图内容
(4)配置启动项
找到需要设置热部署前端代码的工程,修改内容