spring托管的方式加载线程池测试时碰见的问题

来源:互联网 发布:视频广告屏蔽软件 编辑:程序博客网 时间:2024/05/02 07:20

关于ApplicationContext ctx=new AnnotationConfigApplicationContext(AppConfig.class)加注解@Configuration这种方式获取应用程序上下文

 抛出java.lang.IllegalStateException: CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions: [appConfig]


解决方案:添加cglib-nodep-2.2.2.jar

原创粉丝点击