DataSource setup
The org.mybatis.guice.datasource
package
contains an easy-to-use set of classes that makes easier the
javax.sql.DataSource
creation using Guice, through
configurable Data Source Providers.
Importantorg.mybatis.guice.XMLMyBatisModule
users can skip this section.
Configurable means that users are free to bind
jakarta.inject.Named
Data Source properties
and let Guice injects them.
As previously said, the mybatis-guice framework comes with some providers that support the MyBatis built-in Data Sources, moreover we added the support for the popular: