zoukankan      html  css  js  c++  java
  • springboot 热部署问题

    后台热部署

    如果不使用devtools,我们对类的任何修改都需要重启服务才能看到效果,这是不是很操蛋,现在介绍一个如果实现热部署的方法

    1:pom.xml中增加

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

    2:pom.xml中增加以下插件

    <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
            <fork>true</fork>
        </configuration>
    </plugin>

    3:重新启动服务,这时候去修改类中任何内容,不需要再重启服务器即可看到效果

    https://blog.csdn.net/whh743/article/details/68925953 引用别人博客

    html 热部署:

      1) “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “Build project automatically” 。

     2) 组合键:“Shift+Ctrl+Alt+/” ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running

    这样就可以完整的实现项目开发的热部署了

  • 相关阅读:
    关于学习方法
    ES6的异步操作
    Promise对象的基本用法
    Generator函数(三)
    Generator函数(二)
    Generator函数(一)
    ES6 Set结构和Map结构(上)
    mybatis02--增删改查
    myBatis01
    监听器
  • 原文地址:https://www.cnblogs.com/mfser/p/9114918.html
Copyright © 2011-2022 走看看