- 浏览: 5249 次
- 性别:
- 来自: 杭州
最新评论
文章列表
1,bean配置
<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"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframe ...
[color=brown]Spring的定时任务调度:[/color]
<beans>
<!-- 定时任务 -->
<bean id="springQuartzTask" class="定时任务的逻辑处理"></bean>
<bean id="springRecitePushTarget"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean&qu ...
1,首先创建httpclient的单例对象
public class HttpClientFactory {
private static HttpClient httpClient;
/** 设置对单host最大的连接数(默认所有链接都对同一个host) */
private static int maxConnPerHost = 32;
/** 设置最大链接数 默认为20个 */
private static int maxTotalConn = 128;
/** 链接url的超时时间,单位是毫秒(不是response超时时间) */
private static ...
<!-- [if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><!-- [if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:A ...