spring-boot-mybatisplus-multiple-datasource
spring-boot-mybatisplus-multiple-datasource copied to clipboard
Spring Boot Mybatis Plus 多数据源
     把你的项目拉下来,做了这邪恶改动,报错 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.aidijing.user.mapper.UserMapper.getUserById
原工程拉下来,在userMapper.xml中新增一个 selectById 然后调用就提示org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
在xml文件中定义了一个接口,提示 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
司项目也有多数据源的需求,就来看了博主。扒代码的过程中有点问题 有些代码是不是没有用到呀?比如@DynamicDataSource这个注解, @ConfigurationProperties( prefix = "aidijing.transactional" ) 这个是之前写在yml里后面写成final然后没删掉吗? 还有我想请教下,两年过去了,博主现在有更好的多数据源方案了吗?望提示下,多谢!
Invalid bound statement (not found)