蘑菇博客启动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文件中,找到
,后面在添加一行
这种方式一次设置就行。