lengthuo实战–热部署(热加载)

热部署

热加载(开发)

很多方式可以百度

  1. <!--热加载-->

    org.springframework.boot
    spring-boot-devtools

  2. Intellij中的设置(eclipse可能不需要配置此项)
    (如果是第一次配置需要配置下面2项。之后每次只需要配置一次(下面的第一项)即可)

    1. IDEA开启项目自动编译,进入设置,Build,Execut, Deployment -> Compiler 勾选中左侧的Build Project automatically
    2. IDEA开启项目运行时自动make, ctrl + shift + a搜索命令:registry -> 勾选compiler.automake.allow.when.app.running