启动项目报错 Failed to bind properties under

报错信息:


Description:

Failed to bind properties under 'mapper.mappers' to java.util.List>:

    Reason: No converter found capable of converting from type [java.lang.String] to type [java.util.List>]

Action:

Update your application's configuration

2019-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)