愿君学长松,慎勿作桃李。这篇文章主要讲述spring 3.2.7 applicationContext.xml相关的知识,希望能为你提供帮助。
< ?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:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:mongo="http://www.springframework.org/schema/data/mongo" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-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/context http://www.springframework.org/schema/context/spring-context-3.2.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/data/mongo http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd"> < !-- 异步线程池 --> < bean id="taskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"> < !-- 核心线程数 --> < property name="corePoolSize" value="https://www.songbingjia.com/android/2" /> < !-- 最大线程数 --> < property name="maxPoolSize" value="https://www.songbingjia.com/android/100" /> < !-- 队列最大长度 > =mainExecutor.maxSize --> < property name="queueCapacity" value="https://www.songbingjia.com/android/0" /> < !-- 线程池维护线程所允许的空闲时间 --> < property name="keepAliveSeconds" value="https://www.songbingjia.com/android/300" /> < !-- 线程池对拒绝任务(无线程可用)的处理策略 --> < property name="rejectedExecutionHandler"> < bean class="java.util.concurrent.ThreadPoolExecutor$CallerRunsPolicy" /> < /property> < /bean> < /beans>
【spring 3.2.7 applicationContext.xml】
推荐阅读
- 什么样的APP应用才是用户喜欢的?
- Android Studio 升级到3.0 提示 java.lang.NoClassDefFoundError
- android将应用中图片保存到系统相册并显示
- 关于控制台输出 警告 log4j:WARN No appenders could be found for logger
- 关于Androidstudio无法获取到所有的SDk版本,需要挂国内镜像的问题
- android.animation - ValueAnimator-ofObject(TypeEvaluator evaluator, Object... values)
- Tomcat下wtpwebapps文件夹 和 webapps文件夹区别
- Android五大布局介绍&属性设置大全
- 使用Facebook的create-react-app脚手架快速构建React开发环境(ant.design,redux......)