67,512
社区成员
发帖
与我相关
我的任务
分享
ServletContext servletContext=actionservlet.getServletContext();
//获取sping的上下文对象
ApplicationContext ctx=WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);
DictService dictService=(DictService) ctx.getBean("dictServiceImpl");
org.springframework.beans.factory.NoSuchBeanDefinitionException:No bean named 'dictServiceImpl' is defined