Coder Social home page Coder Social logo

spring-boot-mybatisplus-multiple-datasource's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

spring-boot-mybatisplus-multiple-datasource's Issues

setBeanNames参数是可以传递多个字符串

beanNameAutoProxyCreator.setBeanNames( defaultTransactionBeanNameSuffix );
参数是一次传递多个字符串,而不能调用多次,如果调用多次,会出现最后赋值的把之前的覆盖掉.

*Service, ServiceImpl,
如果执行了2次setBeanNames, 则只有
ServiceImpl规则生效, *Service规则则不会生效

跑通了,但看代码的时候有点问题

司项目也有多数据源的需求,就来看了博主。扒代码的过程中有点问题
有些代码是不是没有用到呀?比如@DynamicDataSource这个注解,
@ConfigurationProperties( prefix = "aidijing.transactional" ) 这个是之前写在yml里后面写成final然后没删掉吗?

还有我想请教下,两年过去了,博主现在有更好的多数据源方案了吗?望提示下,多谢!

mapper确实匹配不到

image
image
image
image
image

把你的项目拉下来,做了这邪恶改动,报错 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.aidijing.user.mapper.UserMapper.getUserById

自定义mapper接口错误

在xml文件中定义了一个接口,提示 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.