ideal项目启动及问题

Error running 'xxx项目' Command line is too long(idea版)

错误】 Error running ‘xxx项目’: Command line is too long. Shorten command line for xxx or also for Spring Boot default configuration.spring

根据错误信息可知,指令太过长,根据提示缩短指令便可。ide

在IDEA中找到 Run-> Edit Configurations打开:idea

 

在 Environment-> Shorten command line 的内容配置为 JAR便可解决:spa

 

 

启动参数以下:3d

--spring.config.location=res/ --spring.profiles.active=devblog