启动项目报错 Failed to bind properties under
生活随笔
收集整理的這篇文章主要介紹了
启动项目报错 Failed to bind properties under
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
報錯信息:
Description:Failed to bind properties under 'mapper.mappers' to java.util.List<java.lang.Class<?>>:Reason: No converter found capable of converting from type [java.lang.String] to type [java.util.List<java.lang.Class<?>>]Action:Update your application's configuration2019-05-12 16:46:51.171 INFO 15112 --- [ main] ConfigServletWebServerApplicationContext : Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3eeb318f: startup date [Sun May 12 16:46:50 CST 2019]; root of context hierarchy Disconnected from the target VM, address: '127.0.0.1:52213', transport: 'socket'Process finished with exit code 1解決辦法:
1.查看一下 .properties 文件或者 .yml 文件中 是否有配置 mapper.mappers 這個屬性!有的話看看該屬性配置的實現類是否存在!
配置的話可以看一下這篇文章 Spring boot 集成mybatis通用mapper配置步驟及注意事項
總結
以上是生活随笔為你收集整理的启动项目报错 Failed to bind properties under的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 编程之美之一摞烙饼的排序1
- 下一篇: layui icon 使用