idea中配置springboot热部署

再idea中配置热部署时候发现配置完这段代码后不好用

<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
		</dependency>

原因是因为idea开发工具无法自动编译
这时候我们需要手动调整idea的配置
配置如下:
第一步:打开File——setting——点击Compiler,把Build project automatically勾选上保存
在这里插入图片描述
第二步:同时按住Ctrl+Shift+Alt+/ 会出现如下显示
在这里插入图片描述
选择Registry出现如下界面
把 compiler.automake.allow.when.app.running选中保存即可完成
在这里插入图片描述
再次测试发现已经热部署就配好了

猜你喜欢

转载自blog.csdn.net/Marion158/article/details/87025731