mapper-locations: classpath:mapper/*.xml,classpath:mapper/whj/*.xml,如果你之前的配置是这样的,可以改成mapper-locations: classpath:mapper/**/*.xml,就可以了,中间的多出来的一层两个星号的目录是指0层或多层目录结构 0 7七月 2020-08-07 建议这样的问题,首先搜索下
在创建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 ...