<?xml version="1.0" encoding="UTF-8"?>
<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-2.0.xsd">
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:dpc.properties</value>
</list>
</property>
</bean>
<bean id="guestManager" class="com.taobao.dpservice.test.sample.java.manager.impl.GuestManagerImpl" >
<property name="dao">
<ref bean="dao" />
</property>
</bean>
<bean id="dao" class="com.taobao.dpservice.test.sample.java.dao.impl.GuestDaoJdbc" >
<property name="jdbcTemplate">
<ref bean="jdbcTemplate"/>
</property>
</bean>
<!-- 自动打印日志配置开始 -->
<bean id="logInterceptor" class="com.taobao.itest.spring.aop.LogInterceptor">
<property name="logInvokeParams" value="true" />
<property name="logInvokeResult" value="true" />
</bean>
<bean
class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property name="beanNames">
<value>guestManager</value>
</property>
<property name="interceptorNames">
<list>
<value>logInterceptor</value>
</list>
</property>
</bean>
<!-- 自动打印日志配置结束-->
</beans>
propertyConfigure的使用
最新推荐文章于 2022-04-17 15:33:27 发布