美文网首页
spring boot 自动更新静态文件和后台代码 -- 热部署

spring boot 自动更新静态文件和后台代码 -- 热部署

作者: 覃始皇 | 来源:发表于2019-02-19 11:20 被阅读0次

参考资料:

1,https://www.cnblogs.com/elvinle/p/7989119.html

2,https://blog.csdn.net/je_ge/article/details/53326525 不同介绍原理和yaml配置

3,https://blog.csdn.net/husong_/article/details/79984248

4,https://my.oschina.net/yejunxi/blog/845752 原创文章

注意:实际流程1测试去掉未见有任何影响,仍然可以热部署

操作流程

1. pom.xml 修改

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

在pom.xml文件中, 加入此配置, 可以更新后台修改的静态文件

2. file->settings

在上图中, 将红色圈中的部分, 选中即可

3. windows:shift + ctrl + alt + /.  Mac:shift+command(普通键盘小窗口)+alt+/

通过以上快捷键, 会弹出Maintenance弹窗, 选择第一个

相关文章

网友评论

      本文标题:spring boot 自动更新静态文件和后台代码 -- 热部署

      本文链接:https://www.haomeiwen.com/subject/hcsxyqtx.html