没有设置好正确的类路径 点击上面圈红色处,在点击Edit Configuration,进入下面设置界面 切换到下面这个界面 红色×消失,运行正常,截图如下 转载于:https://www.cnblogs.com/mrray1105/p/8135616.html