一、报错信息
Error running ‘EmployeeApplication’: Command line is too long. Shorten command line for EmployeeApplication or also for Spring Boot default configuration.
二、解决方案
右键项目,选择Show in Explorer,找到 .idea/workspace.xml 文件中的 <component name= “PropertiesComponent”>,添加如下代码:
<property name="dynamic.classpath" value="true" />
此时在IDEA中重启项目就不再报错!!!