spring boot框架application.yml中mybatis.mapper-locations的路径配置问题

如果是自己手工创建的springboot项目的话

在创建mapper包结构的时候一定要用  /

用.的话会扫描不到,会报如下错误

Description:


Field cloudNoteDao in com.csc.service.CloudNoteServiceImpl required a bean of type 'com.csc.dao.CloudNoteDao' that could not be found.




Action:


Consider defining a bean of type 'com.csc.dao.CloudNoteDao' in your configuration.

你可能感兴趣的:(小知识)