snakeyaml was not found on the classpath 錯誤

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>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章