錯誤寫法:
cxt = new ClassPathXmlApplicationContext();
productService = (ProductService)cxt.getBean("productTypeServiceBean");
正確寫法:
cxt = new ClassPathXmlApplicationContext("beans.xml");
productService = (ProductService)cxt.getBean("productTypeServiceBean");
