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啦!