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.

猜你喜欢

转载自blog.csdn.net/loco_1/article/details/79711839