Tuto spring javaconfig http://www.mkyong.com/spring3/spring-3-javaconfig-example/