spring boot 整合mybatis 启动时报错:
Invalid bound statement (not found): com.xl.mapper.UserMapper.loadUserByUsername
1.检查mapper.xml文件中namespace的路径是否跟mapper 接口的路径一致
<mapper namespace="com.xl.mapper.UserMapper">
2.检查接口中的方法是XML文件中是否存在
3.检查Mapper的XML配置路径是否正确
mybatis:
mapper-locations: classpath:mappers/*.xml
type-aliases-package: com.xl.model