1. 复现错误
今天启动spring boot
项目时,报出如下错误:
即Command line is too long. Shorten command line for xxxApplication or also for Spring Boot default configuration.
2. 复习错误
将错误Command line is too long. Shorten command line for xxxApplication or also for Spring Boot default configuration.
翻译成中文:命令行太长。缩短 xxxApplication 或 Spring Boot 默认配置的命令行。
命令行太长导致SpringBoot
和整个应用无法成功启动,那为什么会报这样一个错误呢?
因为IDEA
底层是通过命令行或者文件的方式,将classpath
传递到Java
的