项目环境: IDE:idea 项目:spring boot 问题描述: 项目启动和Test的时候报 Error running’ xxxxxx’: Command line is too long. Shorten command line for xxxxxxxxx 原因分析: 我和大家一样也是先去百度,然后看到一堆这种答案并没卵用。不适合我 解决方案: 配置参数 如果是测试类会被隐藏 问题搞定。