org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.test.mapper.AdminMapper.login
网上的改法都试过了,还是不行,求问哪里错了,项目发到github上了,谢谢
https://github.com/XH-me/warn
xml文件和接口没有映射上。
相关代码发一下吧。
如果引用mybatis-plus-boot-starter 依赖,需要配置 mybatis-plus.mapper-locations
如果引用mybatis-plus 依赖,需要配置 mybatis.mapper-locations
配置项,改成这个 试一下
mybatis:
mapper-locations: classpath:mapper/**/*.xml