<?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:tx="http://www.springframework.org/schema/tx" xmlns:cache="http://www.springframework.org/schema/cache" xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache-3.2.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.2.xsd"
default-lazy-init="true">
<!-- PropertyPlaceholderConfigurer实现了BeanFactoryPostProcessor接口,它能够对<bean/>中的属性值进行外在化管理。开发者可以提供单独的属性文件来管理相关属性。-->
<context:property-placeholder location="classpath*:/shopxx.properties" ignore-resource-not-found="true" ignore-unresolvable="true" />

 

<!-- 自动加载bean--> 

<context:component-scan base-package="net.shopxx">
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" />
</context:component-scan>

 

<!--C3P0是一个开放源代码的JDBC连接池,它在lib目录中与Hibernate一起发布,包括了实现jdbc3和jdbc2扩展规范说明的Connection 和Statement 池的DataSources 对象。--> 

<bean />
</bean>

<!--jpa持久化--> 

<bean >${java.io.tmpdir}/${system.project_name}/index</prop>
</props>
</property>
</bean>

 

<!--通过@Transactional注解就可以引入事务管理功能。--> 

<bean />
</bean>

<tx:annotation-driven transaction-manager="transactionManager" />

<cache:annotation-driven cache-manager="cacheManager" />

<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetClass" value="java.lang.System" />
<property name="targetMethod" value="setProperty" />
<property name="arguments">
<list>
<value>system.project_name</value>
<value>${system.project_name}</value>
</list>
</property>
</bean>

<!--缓存配置--> 

<bean />
</bean>

<bean />
</bean>

<bean />
</map>
</property>
</bean>

<bean >
<list>
<value>${message.common_path}</value>
<value>${message.shop_path}</value>
<value>${message.admin_path}</value>
</list>
</property>
</bean>

<bean />
</bean>

<bean />
</bean>

<bean >javax.net.ssl.SSLSocketFactory</prop>
-->
</props>
</property>
</bean>

<bean />
</bean>

 

 <!-- 这句是定时器开关-->

<task:annotation-driven />

</beans>

相关文章: