Line: 243 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:243:-1

版权声明:博客知识产权来源命运的信徒,切勿侵权 https://blog.csdn.net/qq_37591637/article/details/88657754

背景:

ssh三大框架整合使用案例


解决方案

1.去掉struts2-spring-plugin-2.1.8包即可,因为没有用到spring。
2.还有的原因是用spring了,却没加监听器,在web.xml里面加上

  <context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>classpath:applicationContext.xml</param-value>
	</context-param>
  <listener>
		<listener-class>cn.com.listen.SpringServletContextListener</listener-class>
	</listener>

猜你喜欢

转载自blog.csdn.net/qq_37591637/article/details/88657754