在idea中运行项目有时会报错:Error running ‘YkdResourceApplication’: Command line is too long. Shorten command line for YkdResourceApplication or also for Spring Boot default configuration.
这是由于环境变量超长引起的。
解决办法
1.找到项目里面的idea/workspace.xml文件,然后再找到<component name="PropertiesComponent"></component >
标签
2.在标签里加上<property name="dynamic.classpath" value="true" />