Package com.lei.dao

Examples of com.lei.dao.UserDao


 
  public static void main(String[] args) {
   
   
    ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
    UserDao dao=(UserDao) ctx.getBean("userDao");
    User u=new User();
    u.setUsername("aa");
    u.setRole("admin");
    u.setPassword("111");
   
    dao.save(u);
  }
View Full Code Here

TOP

Related Classes of com.lei.dao.UserDao

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.