1 <?XML version= "1.0" encoding= "UTF-8"?>2 <Beansxmlns= "Http://www.springframework.org/schema/beans"3 Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"4 Xmlns:context= "Http://www.springframework.org/schema/context"5 Xmlns:tx= "Http://www.springframework.org/schema/tx"6 xsi:schemalocation= "Http://www.springframework.org/schema/beans7 http://www.springframework.org/schema/beans/spring-beans.xsd8 Http://www.springframework.org/schema/tx9 http://www.springframework.org/schema/tx/spring-tx-4.0.xsdTen Http://www.springframework.org/schema/context One http://www.springframework.org/schema/context/spring-context-4.1.xsd " A Default-lazy-init= "false"Default-init-method= "Initialize"> - - <Tx:annotation-driven/> the - <!--using annotation to register beans automatically - - <Context:component-scanBase-package= "Com.ht"/> - + - <!--define variables that are susceptible to environmental impacts - + <Beanclass= "Org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> A < Propertyname= "Systempropertiesmodename"value= "System_properties_mode_override" /> at < Propertyname= "Ignoreresourcenotfound"value= "false" /> - < Propertyname= "Locations"> - <List> - <!--Standard configuration - - <value>File:/data/ht/ma/test/test-ma.properties</value> - </List> in </ Property> - </Bean> to + <!--Dubbo Consumer Profile - - <ImportResource= "Dubbo-consumer.xml"></Import> the * </Beans>
04. Build a test project based on Idea+spring+maven--Configuration Application-context.xml