@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @Inherited public @interface UseDataSource
| Modifier and Type | Optional Element and Description |
|---|---|
String |
database
指定数据库
|
boolean |
fallbackDefault |
String |
value |
public abstract String value
DynamicDataSource.getId()public abstract String database
public abstract boolean fallbackDefault
false,当数据源不存在的时候,
将抛出 DataSourceNotFoundExceptionDataSourceHolder.currentExisting()Copyright © 2016–2021. All rights reserved.