三种方法:也不知道是那种方法起了作用
1、在setting中更新maven仓库
2、IDEA项目右键 --> maven --> reimport
3、File–>Invalidate Caches/Restart
转载于:https://blog.csdn.net/jwcxs_m/article/details/80076909