问题记录
问题是:找不到你项目映射文件(*.xml)
在application.properties文件中添加
mybatis.mapper-locations=classpath*:/mapper/**Mapper.xml
如果属性文件是.yml的,添加
mybatis:
mapper-locations: classpath:mapper/*.xml
问题记录
问题是:找不到你项目映射文件(*.xml)
在application.properties文件中添加
mybatis.mapper-locations=classpath*:/mapper/**Mapper.xml
如果属性文件是.yml的,添加
mybatis:
mapper-locations: classpath:mapper/*.xml