spring.xml 1.12 KB
<?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"
       xmlns:apollo="http://www.ctrip.com/schema/apollo"
       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
       http://www.ctrip.com/schema/apollo http://www.ctrip.com/schema/apollo.xsd">
    <apollo:config order="10"/>
    <apollo:config namespaces="FX.apollo" order="11"/>

    <bean class="com.ctrip.framework.apollo.demo.spring.common.bean.NormalBean">
        <property name="batch" value="${batch:100}"/>
    </bean>

    <!-- to support RefreshScope -->
    <bean class="org.springframework.cloud.autoconfigure.RefreshAutoConfiguration"/>

    <context:component-scan
            base-package="com.ctrip.framework.apollo.demo.spring.common.bean,com.ctrip.framework.apollo.demo.spring.common.refresh"/>
</beans>