spring.xml 1.35 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:aop="http://www.springframework.org/schema/aop"
	   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.springframework.org/schema/aop
			http://www.springframework.org/schema/aop/spring-aop.xsd">

	<!--自动扫描含有@Service将其注入为bean -->
	<context:component-scan base-package="com.b2c.myapp"/>

	<!--<bean id="configProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="locations">
			<list>
				<value>classpath:jdbc.properties</value>
			</list>
		</property>
		<property name="ignoreUnresolvablePlaceholders" value="true" />
	</bean>-->
	<context:property-placeholder location="classpath:jdbc.properties" ignore-unresolvable="true" />
	<aop:aspectj-autoproxy/>
	<import resource="classpath:spring-filter.xml" />
	<import resource="classpath:spring-redis.xml" />
	<import resource="classpath:spring-web.xml" />
	<import resource="classpath:spring-mybatis.xml" />
</beans>