使用springboot修改代码后容器不会自动重新编译,
需添加次依赖
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<!-- optional=true,依赖不会传递,建议用false-->
<optional>false</optional>
</dependency>
</dependencies>