springboot中使用mybatis出现invalid bound问题
在springboot中使用mybatis出现invalid bound问题排除因素调试中发现xxxxxMapper对象的值是已经经过mybatis框架代理过的,说明@Mapper注解扫描到了问题根源application.yml文件中未配置mybatis.mapper-location参数,导致找不到xxxxMapper.xml映射文件拓展一下,如果.xml文件没有被编译器识别为资源文件,即:没有被编译输出到build output目录,也会出现上面的问题。...
复制链接