• 公司之前的非Spring boot项目,需要二次开发,新增表结构之后,在开发的过程中插入数据时遇到下面的异常
    org.apache.ibatis.binding.BindingException: Type interface com.ehi.oilRecord.dao.OilPerDistributionReserveMapper is not known to the MapperRegistry.
    BindingException:Type interface XXX is not known to the MapperRegistry
  • 第一反应是mybatis的表的mapper文件缺少配置导致的,找了一段时间之后发现在mybatis的工具类中需要配置新增表的mapper文件对应的class文件,新增addMapper问题得到解决
    BindingException:Type interface XXX is not known to the MapperRegistry

相关文章:

  • 2021-04-25
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-08
  • 2021-07-20
  • 2022-12-23
猜你喜欢
  • 2021-05-28
  • 2021-04-15
  • 2021-08-06
  • 2021-09-22
  • 2021-08-03
  • 2021-12-18
  • 2022-12-23
相关资源
相似解决方案