1. Xml을 사용한 Spring 환경설정


<aside> 1️⃣ XML을 사용한 스프링 설정

</aside>

<aside> 2️⃣ 간단한 작성예시

</aside>

<beans xmlns="<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>">

    <bean id="helloWorld" class="com.example.HelloWorld">
        <property name="message" value="Hello World!"/>
    </bean>

</beans>

<aside> 3️⃣ 스프링의 XML을 통한 Bean의 의존성 주입처리방식

</aside>

<bean id="helloService" class="com.example.HelloService">
    <property name="helloWorld" ref="helloWorld" />
</bean>

<aside> 4️⃣ XML을 사용한 스프링 설정방식의 장점

</aside>