springboot 启动报错[classpath:/application.yml] but snakeyaml was not found on the classpath

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zwl18210851801/article/details/85599120

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

解决方法:

打开pom文件,手动添加对snakeyaml的依赖:

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

猜你喜欢

转载自blog.csdn.net/zwl18210851801/article/details/85599120