啟動(dòng)項(xiàng)目報(bào)錯(cuò)
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 configuration
2018-12-10 11:25:37,526 [restartedMain] [org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:989)] - [INFO] Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@6943e978: startup date [Mon Dec 10 11:25:36 CST 2018]; root of context hierarchy
Process finished with exit code 0
2020-03-20
偶我找到我的原因了,是在application.properties配置文件:在配置mapper.mappers 時(shí),指定的MyMapper的路徑少寫了個(gè)字母,導(dǎo)致找不到MyMapper,把路徑改對(duì)就好了?,這種錯(cuò)最難找了?。。?/p>
2020-03-20
同問+1
2020-03-07
我也出現(xiàn) 這個(gè)問題,怎么解決
2020-03-05
我今天配置多數(shù)據(jù)源也報(bào)這個(gè)錯(cuò)
2019-07-23
請(qǐng)問樓主解決了嗎,我最近也遇到了這個(gè)問題
2019-03-05
查看一下?.properties 文件或者? .yml 文件中 是否有配置?mapper.mappers 這個(gè)屬性!有的話看看該屬性配置的實(shí)現(xiàn)類是否存在! 配置的話可以看一下這篇文章?Spring boot 集成mybatis通用mapper配置步驟及注意事項(xiàng)
2018-12-15
'mapper.mappers配置文件中,有個(gè)類型是不是設(shè)置錯(cuò)了(from type [java.lang.String] to type [java.util.List<java.lang.Class<?>>]),可以查看下。