snakeyaml was not found on the c

2019-01-30  本文已影响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>
上一篇 下一篇

猜你喜欢

热点阅读