Springboot热部署(后端+前端(html+jsp))

后端:

1.pom.xml引入依赖

Springboot热部署(后端+前端(html+jsp))_第1张图片

2.修改application.properties

3.修改Setting

Springboot热部署(后端+前端(html+jsp))_第2张图片

4.修改Registry

快捷键Ctr+Alt+Shift+/ 选择Registry,勾选compiler.automake.allow.when.app.running

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

前端:

A. 更新JSP文件:在经历了后端上述步骤的基础上,在application.properties添加以下键值对

 

B.自动更新html文件:与更新jsp不同,在经历了后端上述步骤的基础上,Run->Edit Configurations....-->修改on Update action和

on frame deactivation为以下值。

Springboot热部署(后端+前端(html+jsp))_第3张图片

你可能感兴趣的:(Springboot,Springboot热部署,热部署,jsp热部署,html热部署)