异常 `CommandLineWrapper` is ill-suited for launching apps on Java 9+. If the run configuration uses "classpath file", please change it to "@argfile". Otherwise, please contact support.解决办法

异常显示
image
解决办法
1、在intellij idea的【Configurations】中设置【Shorten command line】选项为【@argfile(Java 9+)】.
选择需要执行的Springboot或者测试,修改其配置
image
设置【Shorten command line】选项为【@argfile(Java 9+)】即可
image

如IDEA没有显示【Shorten command line】选线,则需要自行设置其显示,如下
image
image

posted @ 2022-07-08 16:16  百年一梦  阅读(3111)  评论(0)    收藏  举报