Work Problem Record

1.Gradle选择问题记录

在这里插入图片描述
更改Gradle的选择如下图
在这里插入图片描述

2.启动时命名过长

问题提示:Error running ‘VehicleGpsOilHttpServerApplication’: Command line is too long. Shorten command line for VehicleGpsOilHttpServerApplication or also for Spring Boot default configuration
在这里插入图片描述
解决:在IDEA中找到 Run-> Edit Configurations打开:在 Environment-> Shorten command line 的内容配置为 JAR即可解决.

3.端口占用

报错提示:Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
解决方案:更改项目端口就ok啦!


版权声明:本文为weixin_44977950原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。