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.
根據錯誤信息可知,指令太過長,根據提示縮短指令即可。
在IDEA中找到 Run-> Edit Configurations打開:
在 Environment-> Shorten command line 的內容配置為 JAR即可解決:
啟動參數如下:
--spring.config.location=res/ --spring.profiles.active=dev