cannot locate the chosen objectfactory implementation: spring

场景:ssh整合错误总结 Cannot locate the chosen ObjectFactory implementation: spring

ssh整合异常总结 Cannot locate the chosen ObjectFactory implementation: spring

在日志中报错“Cannot locate the chosen ObjectFactory implementation: spring ”

 

  1. 缺少jar包,添加struts2-spring-plugin- xxx.jar;   
  2. struts.xml中,加上一配置:<constant name="struts.objectFactory" value="spring"/>。

PS:这里他不报其他错误,这个问题搞死我了。  。。。。。。。。