一.开发环境:
1.开发工具:IDEA、Maven;
二.配置热部署
1.开启IDEA自动 build 功能(热部署)配置IDEA:
(1)打开Settings →Build,Execution,Deployment → Compiler → 查找 build project automatically → 选中,操作步骤如下图所示:

(2)打开Settings --> 查找Registry --> 找到并勾选compiler.automake.allow.when.app.running(也可使用快捷键 “Ctrl+Shift+alt+/”打开Registry),使用快捷键方式截图如下:
IDEA使用热部署
本文介绍了如何在IDEA中配置热部署,包括开启自动build功能、启用compiler.automake和添加SpringLoaded、Spring Boot DevTools依赖。对于使用Thymeleaf模板引擎的项目,还需在application.properties中设置spring.thymeleaf.cache为false以禁用模板缓存。

最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



