这是什么情况?随便取个名字都能识别,但是只要取一个和mapper相同的名字,就一片灰,无法识别
这是yml配置
目前在用idea 2021.03
这个是idea编辑器里面定义的文件格式的问题
参考http://t.csdn.cn/bRguF
新建之后,把xml写好,然后dao service都配好应该就可以了
mybatis:
typeAliasesPackage: com.pinyu.miniprogram.mysql.entity
mapper-locations: classpath:mapper/**/*Mapper.xml
mapper:
mappers: com.pinyu.miniprogram.mysql.mappers.BaseMapper
identity: mysql