public class DataSourceWrapper extends Object implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
DataSourceWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
static DataSource |
wrap(DataSource dataSource)
包装一个数据源,不支持二次包装.
|
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic static DataSource wrap(DataSource dataSource)
dataSource - 目标的 DataSource.Copyright © 2021. All rights reserved.