首页 > 技术文章 > 关于IDEA中maven项目中在pom.xml导入依赖报错的解决方法

changchangchang 2019-12-13 21:39 原文

报错详情

今天使用springcloud中的hystrix做服务降级的时候,导入下面的依赖,出现红色波浪线的报错信息
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
    </dependency>

多次刷新maven无果,直接说最终的解决办法

解决办法

搜索包含.lastU文件名的文件,全部删除,然后回到idea重新刷新maven,如果还是不行,重新导入依赖包,最后问题得以解决

推荐阅读