What if the mybatis interceptor fails after springboot configures multiple data sources
This article is about what to do when the mybatis interceptor fails after springboot configures multiple data sources. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
The configuration file is configured remotely and distributed through springcloudconfig. Uses the Ali Druid data source. And support the read and write separation of one master and multiple slaves. The paging component dynamically sets the total number of total by intercepting method names with the page suffix.
1. Parsing configuration file initialization data source @ Configurationpublic class DataSourceConfiguration {/ * data source type * / @ Value ("${spring.datasource.type}") private Class