美文网首页
snakeyaml was not found on the c

snakeyaml was not found on the c

作者: 良人与我 | 来源:发表于2019-01-30 16:31 被阅读0次

springboot 程序启动报如下错误

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

pom 依赖包引用错误
自动配置的包引入出错

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-autoconfigure</artifactId>
        </dependency>

改为

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>

相关文章

网友评论

      本文标题:snakeyaml was not found on the c

      本文链接:https://www.haomeiwen.com/subject/ygrvjqtx.html