蘑菇博客启动SpringBoot微服务项目时报错:Error running WebApplication. Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun.
1.修改运行配置Configurations,将默认的Shorten command line的值user-local default 改为 JAR mainifest 或者 classpath file
这种办法每次需要对每个类单独设置。


2、在项目的.idea/workspace.xml文件中,找到
,后面在添加一行
这种方式一次设置就行。
本文介绍了在使用SpringBoot启动微服务项目时遇到的命令行过长问题,提供了两种解决方案:一是通过修改JARmanifest或classpathfile来缩短命令行,二是全局设置在IDEA的workspace.xml中。
8729

被折叠的 条评论
为什么被折叠?



