Dependency 'org.springframework.boot:spring-boot-devtools:<unknown>' not found less... (Ctrl+F1) Inspection info: Inspects a Maven model for resolution problems.

解决 spring-boot-devtools 和 spring-boot-starter-thymeleaf maven不能下载依赖的问题


C:\Users\chengchen2.m2\repository\org\springframework\boot\spring-boot-devtools 删除,重新下载
然后进行maven update

或者
在pom文件中加入下面的代码

<repositories>
        <repository>
            <id>spring-releases</id>
            <name>Spring Releases</name>
            <url>https://repo.spring.io/libs-release</url>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>spring-releases</id>
            <name>Spring Releases</name>
            <url>https://repo.spring.io/libs-release</url>
        </pluginRepository>
    </pluginRepositories>



链接:https://www.jianshu.com/p/4bb11fff2e60
posted @ 2020-07-03 19:16  Hello小码  阅读(5174)  评论(0编辑  收藏  举报