applicationContext.xml

<?xml version="1.0" encoding="UTF-8"?>
<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"
    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-4.0.xsd">

    <bean id="config"
        class="test.Config">
        <property name="key" value="AAAAA"></property>
        <property name="value" value="BBBBB"></property>
    </bean>

    <context:component-scan base-package="test"></context:component-scan>




</beans>

 

posted @ 2016-10-17 10:17  Ali.Blacken  阅读(123)  评论(0)    收藏  举报