All Downloads are FREE. Search and download functionalities are using the official Maven repository.

vplus-html.resources.spring.spring-context.xml Maven / Gradle / Ivy

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

    <aop:aspectj-autoproxy/>
    <context:annotation-config/>
    <context:component-scan base-package="${bean.packName}**" />
    <context:property-placeholder location="classpath:config.properties" ignore-unresolvable="true" />

    <bean id="taskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
        <property name="corePoolSize" value="40" />     <!-- 线程池活跃的线程数 -->
        <property name="maxPoolSize" value="50" />      <!-- 线程池最大活跃的线程数 -->
        <property name="queueCapacity" value="150" />   <!-- 队列的最大容量 -->
    </bean>

    <import resource="spring-jdbc.xml" />


</beans>





© 2015 - 2024 Weber Informatics LLC | Privacy Policy