使用Spring3最常见的问题:Exception: java.lang.IllegalStateException: CGLIB is required to process @Configurat
来源:互联网 发布:中国贵族学校知乎 编辑:程序博客网 时间:2024/05/16 15:28
使用Spring3最常见的问题:Exception: java.lang.IllegalStateException: CGLIB is required to process @Configuration classes.
异常:
Exception in thread "main" java.lang.IllegalStateException: CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions: [appConfig]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:257)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:147)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:624)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:614)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:398)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:65)
at com.mkyong.core.App.main(App.java:10)
解决:
添加jar包:cglib-nodep-2.2.2.jar(OK,问题解决)
原文链接:http://hi.baidu.com/newsyz/item/d8439a3fe82a456f7d034b0e
- 使用Spring3最常见的问题:Exception: java.lang.IllegalStateException: CGLIB is required to process @Configurat
- java.lang.IllegalStateException: No FacesContext is available to process this request的另一种处理方法
- nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ***
- nested exception is java.lang.IllegalStateException: Encountered invalid @Scheduled method
- mybatis 异常处理Cause: java.lang.IllegalStateException: Cannot enable lazy loading because CGLIB is not
- java.lang.IllegalArgumentException: id to load is required for loading
- java.lang.IllegalArgumentException: id to load is required for loading
- java.lang.IllegalArgumentException: id to load is required for loading
- java.lang.IllegalArgumentException: id to load is required for loading
- java.lang.IllegalArgumentException: id to load is required for loading
- java.lang.IllegalArgumentException: id to load is required for loading
- java.lang.IllegalArgumentException: id to load is required for loading
- java.lang.IllegalArgumentException: id to load is required for loading
- 错误java.lang.IllegalArgumentException: id to load is required for loading的解决方法
- java.lang.IllegalStateException: TimerTask is scheduled already问题分析
- java.lang.IllegalStateException异常的问题
- springmvc java.lang.IllegalStateException:问题的解决
- 关于Timer计时器控件的java.lang.IllegalStateException: TimerTask is scheduled already问题分析
- Android:广播类别消息类型
- 从决策树学习谈到贝叶斯分类算法、EM、HMM
- AIX oracle 监听问题处理
- nyoj-217
- C++面试题
- 使用Spring3最常见的问题:Exception: java.lang.IllegalStateException: CGLIB is required to process @Configurat
- Android:系统设置各个界面
- android删除短信(绕过权限)
- Spring 与 Struts2.x的整合
- 学习C语言一些的好的书和网站
- msgget()打开或新建一个消息队列
- 做一个商业网站要多少钱?
- nginx实现访问网站或目录密码认证保护
- 开源 免费 java CMS - FreeCMS1.3-数据对象-question