解决方法
不使用Springboot devtools,将其在pom.xml中注释掉
<!--spring boot热部署插件-->
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-devtools</artifactId>-->
<!-- <optional>true</optional>-->
<!-- <scope>runtime</scope>-->
<!-- </dependency>-->
参考:https://blog.csdn.net/Even_Chou_Even/article/details/107956603