启动web项目时报java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getCla

来源:互联网 发布:淘宝7了个3 编辑:程序博客网 时间:2024/05/01 17:40

未在web.xml中加上spring的监听

 <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>