04.基于IDEA+Spring+Maven搭建测试项目--配置application-context.xml

我自横刀向天笑,去留肝胆两昆仑。这篇文章主要讲述04.基于IDEA+Spring+Maven搭建测试项目--配置application-context.xml相关的知识,希望能为你提供帮助。

1 < ?xml version="1.0" encoding="UTF-8"?> 2 < beans xmlns="http://www.springframework.org/schema/beans" 3xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4xmlns:context="http://www.springframework.org/schema/context" 5xmlns:tx="http://www.springframework.org/schema/tx" 6xsi:schemaLocation="http://www.springframework.org/schema/beans 7http://www.springframework.org/schema/beans/spring-beans.xsd 8http://www.springframework.org/schema/tx 9http://www.springframework.org/schema/tx/spring-tx-4.0.xsd 10http://www.springframework.org/schema/context 11http://www.springframework.org/schema/context/spring-context-4.1.xsd" 12default-lazy-init="false" default-init-method="initialize"> 13 14< tx:annotation-driven /> 15 16< !-- 使用annotation 自动注册bean --> 17< context:component-scan base-package="com.ht"/> 18 19 20< !-- 定义受环境影响易变的变量 --> 21< bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> 22< property name="systemPropertiesModeName" value="https://www.songbingjia.com/android/SYSTEM_PROPERTIES_MODE_OVERRIDE" /> 23< property name="ignoreResourceNotFound" value="https://www.songbingjia.com/android/false" /> 24< property name="locations"> 25< list> 26< !-- 标准配置 --> 27< value> file:/data/ht/ma/test/test-ma.properties< /value> 28< /list> 29< /property> 30< /bean> 31 32< !-- dubbo消费者配置文件 --> 33< import resource="dubbo-consumer.xml"> < /import> 34 35 < /beans>

【04.基于IDEA+Spring+Maven搭建测试项目--配置application-context.xml】 

    推荐阅读