@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath*:spring*.xml"})
public class Test {
@Resource
private TestService userService;
@org.junit.Test
public void test1(){
List<User> userService= userService.getList();
}
}