java.lang.IllegalStateException:[classpath:/application.yml]snakeyaml was not found on the classpath

启动springboot的时候,报了这个错,给我整懵了

java.lang.IllegalStateException: Attempted to load applicationConfig: [classpath:/application.yml] but snakeyaml was not found on the classpath

找了很多解决方案,

一、添加依赖

<dependency>
    <groupId>org.yaml</groupId>
    <artifactId>snakeyaml</artifactId>
</dependency>

     (好家伙,还是不行)

二、jar包的问题,立马手动删除maven库snakeyaml的jar包,重新maven update

  (我尝试去删除,可以我不知道怎么删 (T_T))

三、检查自己的项目maven是否配置了

                                                  (当场去世.jpg)

修改配置

 

它好了

 

 

 

posted @ 2021-07-15 13:16  广大青年  阅读(2128)  评论(0)    收藏  举报