📄 testpersondao.java
字号:
package org.lxh.struts.note.test;
import org.lxh.struts.note.dao.PersonDAO;
import org.lxh.struts.note.vo.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TestPersonDAO {
/**
* @param args
* @throws Exception
*/
public static void main(String[] args) throws Exception {
ApplicationContext ctx = null ;
ctx = new ClassPathXmlApplicationContext("applicationContext.xml") ;
PersonDAO pd = (PersonDAO)ctx.getBean("persondaoimpl") ;
Person p = new Person() ;
p.setId("LXH") ;
p.setPassword("zzzzzz") ;
System.out.println(pd.login(p)) ;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -