赞
踩
依赖中添加
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
插件中设置
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
Idea 中 setting -> Compiler -> 勾选automatically
编辑启动配置,点击modify options。
options 中需要修改两个配置:
1.On 'Update' action 中选择 Hot swap classes and update trigger file if failed
2.On frame deactivation 中选择 Update classes and resources
3.以 debug 模式启动应用
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。