正常使用基础配置 mybatis-plus:# 包扫描路径(当前项目的实体类所在位置。别名包扫描路径,通过该属性可以给包中的类注册别名,多个路径用逗号分割)type-aliases-package: com.xxx.xxx.xxx.model.entity# xml扫描,多个目录用逗号或者分号分隔(告诉 Mapper 所对应的 XML 文件位置)mapper-locations: classpath:mapper/*...
按网上的搜索,配置@Mapper依然报错 Description: Field tagMapper in com.example.demo.service.TagService required a bean of type 'com.example.demo.mapper.TagMapper' that could not be found. The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(req...