Define in Web-application-config.xml
<bean id= "Employeeservicedest" class= "Com.service.EmployeeServiceImpl" >
<flex:remoting-destination/>
<property name= "Esysdao" ref= "Esysdao"/>
</bean>
The result is a run-time error:
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' employeeservicedest ' defined In ServletContext resource [/web-inf/web-application-config.xml]: Error setting values; Nested exception is Org.springframework.beans.NotWritablePropertyException:Invalid property ' Esyerdao ' of Bean class [ Com.service.EmployeeServiceImpl]:
Bean property ' Esyerdao ' are not writable or has a invalid setter method. Does the parameter type of the setter match the return type of the getter?
Personal Understanding the bean tags in spring are used to create objects for classes that are equivalent to properties in a class, and if a class uses attributes, you need to generate a get and set method in that class, or you will complain.