摘要:
ApplicationContext ac=new ClassPathXmlApplicationContext("applicationContext.xml"); MyAdviceImpl ad=(MyAdviceImpl) ac.getBean("ad");//类 FAIL ad.sayHello();Exception in thread "main" java.lang.ClassCastException: sun.proxy.$Proxy0 cannot be cast to dao.impl.MyAdviceImpl 阅读全文