springboot整合mybatis时遇到的一个异常:
原本映射xml的路径写的如下:
mybatis.mapper-locations=classpath*:/mybatis-mapper
后面加上*Mapper.xml即可:
mybatis.mapper-locations=classpath*:/mybatis-mapper/*Mapper.xml
springboot整合mybatis时遇到的一个异常:
原本映射xml的路径写的如下:
mybatis.mapper-locations=classpath*:/mybatis-mapper
后面加上*Mapper.xml即可:
mybatis.mapper-locations=classpath*:/mybatis-mapper/*Mapper.xml