What is well formed bean configuration according to my code

This is my applicationContext.xml file which is designed for the constructor injection

<beans xmlns="http://www.springframework.org/schema/beans"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"     xmlns:p="http://www.springframework.org/schema/p" xmlns:c="http://www.springframework.org/schema/c"     xsi:schemaLocation="http://www.springframework.org/schema/beans     http://www.springframework.org/schema/beans/spring-beans.xsd     http://www.springframework.org/schema/context     http://www.springframework.org/schema/context/spring-context.xsd">      <bean class="com.spring.app.Customer" name="customer" p:custId="123" p:custName="ABC" p:emailId="asjas" p:contactNo="123445666" />       <bean class="com.spring.app.MemberShip"         name="membership">         <constructor-arg value="123" type="int" index="0"/>         <constructor-arg value="A" type="String" index="1"/>         <constructor-arg value="2" type="int" index="2"/>         <constructor-arg ref="customer" type="Customer"/>                          </bean>       </beans>   

Here I wrote this program as part of an exercise and when I evaluate it , it shows

Check whether you have welformed bean configuration.  

Please help me to fix this, Thank you..

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.