Cannot locate the chosen ObjectFactory implementation: spring

Caused by: Unable to load configuration. - [unknown location]
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)
	... 35 more
Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]
	at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:293)
	at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:264)
	at org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvider.java:202)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
	... 37 more


解决办法是:添加struts2-spring-plugin-*.jar 包

你可能感兴趣的:(Cannot locate the chosen ObjectFactory implementation: spring)