I am following this tutorial online to the letter. http://www.tutorialspoint.com/spring/spring_bean_life_cycle.htm
But I get the errors when using Eclipse when I get to
//use this line,
((AbstractApplicationContext) ctx).registerShutdownHook();