81,092
社区成员
发帖
与我相关
我的任务
分享
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
spring容器的启动类, 这个listener要加上.
这是非常小白的错误, 建议你网上找些简单的spring例子, 先看下. 再试着自己动手
WebApplicationContext wac = WebApplicationContextUtils
.getRequiredWebApplicationContext(getServletContext());
ActService as = (ActService) wac.getBean("actService");