标签:
mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
需要在idea 中edit configuration->+ -> remote->debug
debug run
在pom里添加:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
<dependencies>
<!-- spring热部署-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
然后修改类后,在idea中重新编译该类:build->recompile XXXX
或者使用快捷键ctrl+shif+F9
标签:
原文地址:http://www.cnblogs.com/softidea/p/5759332.html