<bean id= "Feecodesogouconfig"
class= "Com.sech.zengzhi.service.config.FeeCodeSogouConfig" >
<constructor-arg>
<ref bean= "UserService"/>
</constructor-arg>
<constructor-arg>
<ref bean= "Advertisingservice"/>
</constructor-arg>
<property name= "Searchdataservice" >
<ref local= "Searchdataservice"/>
</property>
<property name= "SysConfig" >
<ref local= "SysConfig"/>
</property>
</bean>
Error message: 16:37:18,109 error Contextloader:205-context initialization failed
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Feecodesogouconfig '
defined in ServletContext resource [/web-inf/applicationcontext.xml]: 2 constructor arguments specified but no
Matching constructor found in bean ' feecodesogouconfig '
(hint:specify index and/or type arguments for simple parameters to avoid type ambiguities)
Reason is
The constructor is incorrectly written. The constructor was not found when injected
Public Feecodesogouconfig (UserService userservice,advertisingservice advertisingservice) {
Logger.debug (" Initializes ... ");
This.userservice = UserService;
This.advertisingservice=advertisingservice;
This.loadusercodes ();
}
Plus the red problem solved