Skip to main content
Version: 4.6

Third-Party Integrations

This chapter covers how to combine multiple datasources with commonly used middleware.

ComponentWhy integrate itKey point
MyBatis-Pluslet @DS coexist with MP's ServiceImpl and pagination pluginmethods that carry MP's own transaction cannot switch databases, work around them
P6spyprint SQL with the real parameter valuesenable globally or per datasource; keep it off in production
Quartzlet the scheduler use a dedicated database, or one of the dynamic datasourcesJDBC JobStore and @QuartzDataSource
ShardingSpherecombine "sharding + multiple datasources"take over with a custom DynamicDataSourceProvider
tip

Most integrations need no special support from this framework — DynamicRoutingDataSource is itself a plain DataSource, so anything that accepts a DataSource can be plugged in directly.