Hi,
trying to execute this piece of code:
Can anyone tell me how to fix this? Thanks!Code:ClasspthXmlApplicationContext ctx; IBean bean; ((SingletonBeanRegistry) ctx).registerSingleton(IBean.class.getName(), bean); ctx.getBean(IBean.class) /* Throws NoSuchBeanException */


Reply With Quote