本帖最后由 lielie1987 于 2014-09-01 15:14:58 编辑

解决方案 »

  1.   

    1. classpath* 这个没遇到过,应该这个有点问题。
    2. spring mvc的配置没有显示的给出来,你可以试试给出来看看结果。
      

  2.   

    <context:component-scan base-package="com.controller"></context:component-scan> <mvc:annotation-driven /> <mvc:resources location="/WEB-INF/static/" mapping="/static/*" /> <mvc:default-servlet-handler /> <bean
    class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="prefix">
    <value>/WEB-INF/pages/</value>
    </property>
    <property name="suffix">
    <value>.jsp</value>
    </property>
    </bean>
      

  3.   

       <context-param>  
            <param-name>contextConfigLocation</param-name>  
            <param-value>classpath*:config/beans.xml</param-value>  
          </context-param>  这个地方不是spring 的config吗