这个是什么问题啊:
springConfig.xml在base包下:web.xml配置如下:
<!-- 加载上下文 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/com/test/base/springConfig.xml</param-value>
</context-param>
<!-- 配置监听 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
不知道哪里还有错啊,求救!

解决方案 »

  1.   

    spring配置自觉应该没什么问题了啊,可是为什么老是报标题上所写的错误呢?
      

  2.   

    确保Srping所需要的jar包都添加进来了
      

  3.   

    你是想怎么得到 applicationContext的?WebApplicationContextUtils.getWebApplicationContext(servletContext) 吗?
      

  4.   

    求大侠啊,救救我啊,要不就把我打击死了,才刚学习axis就遇到一大堆bug
      

  5.   

    把 springConfig.xml放在WEB-INF目录下面,
    <param-value>/WEB-INF/classes/com/test/base/springConfig.xml</param-value>改成
    <param-value>/WEB-INF/springConfig.xml</param-value>
    try it...
      

  6.   

    getWebApplicationContext().getBean("auth"); 我就这样调用了一下
      

  7.   

    我是这样调用的:
    WebApplicationContextUtils.getWebApplicationContext(getServletContext()).getBean("auth");这样写不对吗?