System.out.println(System.getProperty("java.class.path"));
ApplicationContext context;
context = new ClassPathXmlApplicationContext("spring-config.xml");
MySQLDAO personDAO = (MySQLDAO) context.getBean("personDAO");
List<Person> persons = personDAO.getAll();
for (Person p : persons)
{
System.out.println(p);
}