2022-04-11 15:03:55 +08:00
|
|
|
package io.renren;
|
|
|
|
|
|
|
|
import io.renren.service.DynamicDataSourceTestService;
|
|
|
|
import org.junit.Test;
|
|
|
|
import org.junit.runner.RunWith;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 多数据源测试
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@RunWith(SpringRunner.class)
|
|
|
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
|
|
|
public class DynamicDataSourceTest {
|
|
|
|
@Autowired
|
|
|
|
private DynamicDataSourceTestService dynamicDataSourceTestService;
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void test(){
|
2022-06-09 20:40:56 +08:00
|
|
|
Long id = 1067246875800000001L;
|
2022-04-11 15:03:55 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|