spring+Mybatis(测试)

来源:互联网 发布:win7 64位优化版gho 编辑:程序博客网 时间:2024/05/04 03:01
public static void main(String[] args) {
        ApplicationContext ac = new
                ClassPathXmlApplicationContext("spring-mybatis.xml");
        TestService service = ac.getBean("testServiceImpl",TestServiceImpl.class);
        List list = service.SelectCsService();
    System.out.println(service);
    }
0 0