使用这个注解,如何获取spring IOC容器的实例对象
ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
使用这个加载,报错。
CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions: [myConfig]
<?xml version="1.0" encoding="UTF-8"?>
<beans></beans>相当于这个
是不是xml文件中没有写<context:component-scan>这个
http://blog.csdn.net/vvhesj/article/details/47661001