Tuesday, 14 March 2017

How do add a bean in spring application?


<?xml version="1.0" encoding="UTF-8"?>
<beansxmlns="http://www.springframework.org/schema/beans"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
                 <beanid="helloWorld"class="com.tutorialspoint.HelloWorld">
                        <propertyname="message"value="Hello World!"/>                </bean>       </beans>

No comments:

Post a Comment