Class: com.opensymphony.xwork2.spring.SpringObjectFactory
File: SpringObjectFactory.java
Method: getClassInstance
Line: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1
        at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)
        at org.apache.struts2.dispatcher.FilterDispatcher.init

省略若干行…………

 

研究了半天,发现是web.xml里少了一段关于spring的配置:

   <!-- 加载spring容器-->
   <context-param>
     <param-name>contextConfigLocation</param-name>
     <param-value>/WEB-INF/config/spring/applicationContext.xml</param-value>
   </context-param>
    <listener>
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
   </listener>

相关文章:

  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
  • 2021-04-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案