<!--扫描除了controller的包-->
<context:component-scan base-package="cn.kgc">
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
</context:component-scan>
<!--引入外部资源-->
<context:property-placeholder location="classpath:db.properties"/>
<!--配置数据源-->
<bean class="com.mchange.v2.c3p0.ComboPooledDataSource" />
</tx:attributes>
</tx:advice>
相关文章: