spring main测试

来源:互联网 发布:淘宝收货地址 编辑:程序博客网 时间:2024/06/05 20:50
@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();    }}

原创粉丝点击