关于Mybatis-Plus org.apache.ibatis.binding.BindingException问题解决

问题描述

org.apache.ibatis.binding.BindingException
Invalid bound statement (not found): com.demo.server.system.mapper.UserMapper.findUserDetailPage

解决方案:确定是否有配置mapper-locations

检查application配置文件是否配置了mapper-locations

如果没有,则按照如下配置进行

mybatis-plus:
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    map-underscore-to-camel-case: true
  type-aliases-package: com.demo.common.domain.entity.system
  mapper-locations: classpath*:/mapper/**/*.xml

解决方案:把xxxMapper.xml文件删除,再重新创建

实测有用!

你可能感兴趣的:(MyBatis-Plus,Java进化之旅,Spring,Boot,mybatis,MyBatis-Plus,Spring,Boot,Java)