Comments (3)
I don't think it is a feature that should be added to MyBatis-Guice since it seems to be related to specific datasources.
The way to go is to use a custom DataSource provider and set it in the MyBatisModule using bindDataSourceProvider() method.
from guice.
As for the question on how to set multiple URLs, you can implement it anyway you want in your provider. I would try first to set multiple values separated by commas or something alike.
from guice.
OK - thanks @christianpoitras - that seems a reasonable way to go.
from guice.
Related Issues (20)
- Allow TxTransactionalMethodInterceptor to commit the transaction on some exceptions
- ask questions about AbstractMyBatisModule,TKS! HOT 4
- Drop commons-dbcp 1 support
- Add commons-dbcp2 support HOT 2
- Drop bonecp support HOT 5
- Add support for HikariCP (as suggested replacement for bonecp) HOT 14
- @Transactional doesn't work when annotated on method HOT 3
- 配置多数据源的问题 HOT 1
- Transactional annotation doesn't work in Kotlin HOT 2
- Will @Transactional annotation work if I annoted it on class name? HOT 1
- Same Datasource having multiple mapper files -- Not an issue but need advice HOT 2
- dep for Guice v5 in 3.13? HOT 3
- jdk 11 release fails with issue on javadoc plugin getting javax.annotation.Nullable HOT 2
- I want to use failover mode and load balancing mode of MariaDB connector / j. HOT 12
- pmd asm conflict issues on site HOT 1
- java.lang.ClassNotFoundException: com.google.inject.AbstractModule not found by org.mybatis.mybatis-guice HOT 1
- Dependency Dashboard
- Add support for `jakarta.*` namespace HOT 7
- `JdbcHelper.MariaDB` no longer compatible with MariaDB Connector/J
- Support for multiple DataSources or Environment HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guice.