在idea中构建gradle项目报错Command line is too long

近期做项目没用maven,改用gradle。虽说他俩使用起来差不太多,但还是初次使用,使用过程,出现的小问题在此记录下。

克隆项目成功后,找到启动项类,运行项目,报错提示:Command line is too long. Shorten command line for Application or also for Spring Boot default configuration.

经百度后,查到解决方案:

 再次运行,即可成功。

想不如做,要多看书,多动手实践,实践出真知。
原文地址:https://www.cnblogs.com/ashanxiaoya/p/14692489.html