IDEA2017.3下设置Springboot热部署

1.Fiel->settings->Build,Execution,Deployment->Compiler 勾选 Build project automatically

IDEA2017.3下设置Springboot热部署_第1张图片

CTRL + SHIFT + A --> 查找Registry

IDEA2017.3下设置Springboot热部署_第2张图片


勾选  compiler.automake.allow.when.app.running

IDEA2017.3下设置Springboot热部署_第3张图片

3 pom.xml加入springboot开发者包


<dependency>
  <groupId>org.springframework.bootgroupId>
  <artifactId>spring-boot-devtoolsartifactId>
  <optional>trueoptional>
dependency>
4 开启springboot热部署

<plugins>
  <plugin>
    <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-maven-pluginartifactId>
    <configuration>
      <fork>truefork>
    configuration>
  plugin>
plugins>
即可完成springboot热部署

参考文章:https://www.cnblogs.com/winner-0715/p/6666579.html


compiler.automake.allow.when.app.running

你可能感兴趣的:(开发工具)