package com.hp.shangtongwei.daoimpl;
import org.springframework.context.support.AbstractXmlApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.hp.shangtongwei.dao.persondao;
import com.hp.shangtongwei.vo.person;
public class TestDemo {
/**
* @param args
*/
public static void main(String[] args) {
AbstractXmlApplicationContext ctx=null;
ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
persondao pdi=(persondaoImpl)ctx.getBean("persondao");
person per=new person();
boolean flag=false;
per.setId("ttt");
per.setPassword("ttt");
try {
flag=pdi.isLogin(per);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println(flag);
}
}