| 12345678910111213141516171819202122232425 |
- /**
- * Copyright (c) 2018 yiidata.com All rights reserved.
- *
- * http://yiidata.com
- *
- *
- */
- package com.yiidata.intergration.web.datasource.config;
- import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
- /**
- * 多数据源
- *
- * @author zhenqin
- */
- public class DynamicDataSource extends AbstractRoutingDataSource {
- @Override
- protected Object determineCurrentLookupKey() {
- return DynamicContextHolder.peek();
- }
- }
|