mapper-locations: classpath:mapper/*.xml,classpath:mapper/whj/*.xml,如果你之前的配置是这样的,可以改成mapper-locations: classpath:mapper/**/*.xml,就可以了,中间的多出来的一层两个星号的目录是指0层或多层目录结构 0 7七月 2020-08-07 建议这样的问题,首先搜索下。 yml 数组 0 Java全栈工程师...
配置mybatis-plus.mapper-locations无提示信息; 此时发现右上角出现感叹号,Cannot resolve configuration property 'mybatis-plus.mapper-locations',强行敲完,启动报错。 检查pom文件,发现未引入包:mybatis-plus-boot-starter <dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-boot-starter</artifa...
在创建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 ...