`

ssh测试

 
阅读更多
spring 测试
	@Test 
	public void testAdd() throws Exception {
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
		UserService service = (UserService)ctx.getBean("userService");
		System.out.println(service.getClass());
		service.add(new User());
		ctx.destroy();
	}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics