1. 程式人生 > >spring託管的方式載入執行緒池測試時碰見的問題

spring託管的方式載入執行緒池測試時碰見的問題

關於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]