zoukankan      html  css  js  c++  java
  • 记一次SpringBoot热更新配置

    1. pom.xml

    <dependency>
    	<groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <optional>true</optional>
        <scope>true</scope>
    </dependency>
    <plugin>
        <!--热部署配置-->
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
        	<fork>true</fork>
        </configuration>
    </plugin>
    

    2. idea配置

    File -> Settings -> Compiler 勾选 √ Build Project automatically

    3. Registry

    • ctrl + shift + alt + /
    • 选择Registry
    • √ Compiler autoMake allow when app running

    使用效果:

    检测到更新会自动重启服务,但是使用起来感觉并不是很便捷

            积极竞争
        不惧失败
    学习提升
  • 相关阅读:
    缺失的第一个正数
    tuple用法
    整数转罗马数字
    三种时间格式的转换
    不同包的调用
    正则表达式
    lgb模板
    线性回归
    时间序列的特征
    3D聚类
  • 原文地址:https://www.cnblogs.com/acmez/p/13626967.html
Copyright © 2011-2022 走看看