|
|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
package com.gaotao; |
|
|
|
|
|
|
|
import com.gaotao.modules.finishedProduct.dao.SapDao; |
|
|
|
import com.gaotao.service.DynamicDataSourceTestService; |
|
|
|
import org.junit.Test; |
|
|
|
import org.junit.runner.RunWith; |
|
|
|
@ -29,4 +30,13 @@ public class DynamicDataSourceTest { |
|
|
|
dynamicDataSourceTestService.updateUserBySlave2(id); |
|
|
|
} |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SapDao sapDao; |
|
|
|
|
|
|
|
@Test |
|
|
|
public void test2(){ |
|
|
|
int count = sapDao.getCount(); |
|
|
|
System.out.println(count); |
|
|
|
} |
|
|
|
|
|
|
|
} |