Slide 17
Slide 17 text
Main: Spring
User user = new User("Charles", 24);
System.out.println("******************************");
User fetchedUser = userService.findOne(-1);
System.out.println(fetchedUser);
String contextLocation = "context/applicationContext.xml";
ApplicationContext context = new
ClassPathXmlApplicationContext(contextLocation);
UserService userService = context.getBean(UserService.class);
userService.save(user);