Mybatis与JPA之间存在不兼容问题 抛出绑定异常:无效的绑定语句(未找到)
发布时间
阅读量:
阅读量
在项目运行过程中,若同时采用Mybatis与JPA进行开发,将会出现以下问题:
InternalAuthenticationServiceException: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.sancaiwulian.smes.system.service.mapper.UserMapper.toDto at org.springframework.security.authentication.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:108)
toDto方法绑定问题分析
首先需要查看target目录中生成的UserMapperImpl这个类文件。

存在一个用于转换的toDto方法
原因分析
出现此现象的原因在于,JPA在利用
全部评论 (0)
还没有任何评论哟~
