方法1:
pom.xml直接添加依赖:
<dependency>
<groupId>org.springframework.boot</groupld>
<artifactid>spring-boot-devtools</artifactld>
<optional>true</optional>
</dependency>
6
6
1
pom.xml直接添加依赖:
2
<dependency>
3
<groupId>org.springframework.boot</groupld>
4
<artifactid>spring-boot-devtools</artifactld>
5
<optional>true</optional>
6
</dependency>
方法2::(修改后可以立即部署)
在build中添加dependencies,引入springloaded
<build>
<plugins>
<plugin>
<groupld>org.springframework.boot</groupld>
<artifactld>spring-boot-maven-pluqins/artifactld>
<dependencies>
<dependency>
<groupld>org.springframework</groupld>
<artifactId>springloaded</artifactld>
<version>1.2.6.RELEASE</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
16
16
1
在build中添加dependencies,引入springloaded
2
<build>
3
<plugins>
4
<plugin>
5
<groupld>org.springframework.boot</groupld>
6
<artifactld>spring-boot-maven-pluqins/artifactld>
7
<dependencies>
8
<dependency>
9
<groupld>org.springframework</groupld>
10
<artifactId>springloaded</artifactld>
11
<version>1.2.6.RELEASE</version>
12
</dependency>
13
</dependencies>
14
</plugin>
15
</plugins>
16
</build>
方法3:(修改后可以立即部署)
下载springloaded的jar包:
在启动项中配置
-javaagent:E:software
epositoryorgspringframeworkspringloaded1.2.8.RELEASEspringloaded-1.2.8.RELEASE.jar -noverify
x
1
-javaagent:E:software
epositoryorgspringframeworkspringloaded1.2.8.RELEASEspringloaded-1.2.8.RELEASE.jar -noverify