spring-scheduler.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"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

<bean id="successRateSchedule" class="com.cmsz.visualization.schedule.SocketIOSuccessRateSchedule"></bean>
<bean id="socketIOScheduleTodayTotalData" class="com.cmsz.visualization.schedule.SocketIOScheduleTodayTotalData" />
<bean id="indexMainMapSchedule" class="com.cmsz.visualization.schedule.SocketIOMainMapSchedule"></bean>

<!-- 缴费详情任务 -->
<bean id="tMallHourDetailSchedule" class="com.cmsz.visualization.schedule.SocketIOTMallHourSchedule" />
<bean id="tMallMonthDetailSchedule" class="com.cmsz.visualization.schedule.SocketIOTMallMonthSchedule" />
<bean id="tMallYearDetailSchedule" class="com.cmsz.visualization.schedule.SocketIOTMallYearSchedule" />
<bean id="moveHourDetailSchedule" class="com.cmsz.visualization.schedule.SocketIOMoveHourSchedule" />
<bean id="moveMonthDetailSchedule" class="com.cmsz.visualization.schedule.SocketIOMoveMonthSchedule" />
<bean id="moveYearDetailSchedule" class="com.cmsz.visualization.schedule.SocketIOMoveYearSchedule" />
<bean id="bankHourDetailSchedule" class="com.cmsz.visualization.schedule.SocketIOBankHourSchedule" />
<bean id="bankMonthDetailSchedule" class="com.cmsz.visualization.schedule.SocketIOBankMonthSchedule" />
<bean id="bankYearDetailSchedule" class="com.cmsz.visualization.schedule.SocketIOBankYearSchedule" />
<!-- 签解约近24小时 -->
<bean id="contractTerminaHourSchedule" class="com.cmsz.visualization.schedule.SocketIOContractTerminaHourSchedule" />
<!-- 签解约近一月 -->
<bean id="contractTerminaMonthSchedule" class="com.cmsz.visualization.schedule.SocketIOContractTerminaMonthSchedule"/>
<!-- 签解约近一年 -->
<bean id="contractTerminaYearSchedule" class="com.cmsz.visualization.schedule.SocketIOContractTerminaYearSchedule"/>

<!-- 签约交易量查询 -->
<bean id="contractMonthTotalSchedule" class="com.cmsz.visualization.schedule.SocketIOContractMonthTotalSchedule" />

<bean id="socketIOScheduleHealth" class="com.cmsz.visualization.schedule.SocketIOScheduleHealth"/>
<bean id="socketIOSchedulePerformance" class="com.cmsz.visualization.schedule.SocketIOSchedulePerformance" />

<!-- 定义目标bean和bean中的方法 -->
<bean id="successSocketioJob"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref local="successRateSchedule" />
</property>
<property name="targetMethod">
<!-- 要执行的方法名称 -->
<value>execute</value>
</property>
<!-- -->
<property name="concurrent" value="true" />
</bean>

<!--定义触发的时间 -->
<bean id="successSocketioCron" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="successSocketioJob" />
</property>
<!-- -->
<property name="cronExpression">
<value>0/3 * * * * ?</value>
</property>
</bean>

<!-- 管理触发器 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="successSocketioCron" />
<ref local="tradingVolumeTrigger" />
</list>
</property>
</bean>

<!-- 交易量任务 -->
<bean id="tradingVolumeSchedule"
class="com.cmsz.visualization.schedule.SocketIOTradingVolumeSchedule" />
<bean id="tradingVolumeScheduleDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="tradingVolumeSchedule" />
<property name="targetMethod" value="doTradingVolumeSchedule" />
<property name="concurrent" value="true" />
</bean>
<bean id="tradingVolumeTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="tradingVolumeScheduleDetail" />
</property>
<!-- cron表达式 -->
<property name="cronExpression">
<value>0/3 * * * * ?</value>
</property>
</bean>

<!-- 天猫近24小时 -->
<bean id="tMallDayScheduleDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="tMallHourDetailSchedule" />
<property name="targetMethod" value="tMallDay" />
<property name="concurrent" value="true" />
</bean>
<bean id="tMallDayDetailTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="tMallDayScheduleDetail" />
</property>
<!-- cron表达式 -->
<property name="cronExpression">
<value>0 1 0-23 * * ?</value>
</property>
</bean>

<!-- 天猫近一月 -->
<bean id="tMallMonthScheduleDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="tMallMonthDetailSchedule" />
<property name="targetMethod" value="tMallMonth" />
<property name="concurrent" value="true" />
</bean>
<bean id="tMallMonthDetailTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="tMallMonthScheduleDetail" />
</property>
<!-- cron表达式 -->
<property name="cronExpression">
<value>0 0 0 */1 * ?</value>
</property>
</bean>

<!-- 天猫近一年 -->
<bean id="tMallYearScheduleDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="tMallYearDetailSchedule" />
<property name="targetMethod" value="tMallYear" />
<property name="concurrent" value="true" />
</bean>
<bean id="tMallYearDetailTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="tMallYearScheduleDetail" />
</property>
<!-- cron表达式 -->
<property name="cronExpression">
<value>0 0 0 1 */1 ?</value>
</property>
</bean>

<!-- 移动商城近24小时 -->
<bean id="moveDayScheduleDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="moveHourDetailSchedule" />
<property name="targetMethod" value="moveDay" />
<property name="concurrent" value="true" />
</bean>
<bean id="moveDayDetailTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="moveDayScheduleDetail" />
</property>
<!-- cron表达式 -->
<property name="cronExpression">
<value> 0 1 0-23 * * ?</value>
</property>
</bean>

<!-- 移动商城近一月-->
<bean id="moveMonthScheduleDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="moveMonthDetailSchedule" />
<property name="targetMethod" value="moveMonth" />
<property name="concurrent" value="true" />
</bean>
<bean id="moveMonthDetailTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="moveMonthScheduleDetail" />
</property>
<!-- cron表达式 -->
<property name="cronExpression">
<value>0 0 0 */1 * ?</value>
</property>
</bean>

<!-- 移动商城近一年 -->
<bean id="moveYearScheduleDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="moveYearDetailSchedule" />
<property name="targetMethod" value="moveYear" />
<property name="concurrent" value="true" />
</bean>
<bean id="moveYearDetailTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="moveYearScheduleDetail" />
</property>
<!-- cron表达式 -->
<property name="cronExpression">
<value>0 0 0 1 */1 ?</value>
</property>
</bean>

<!-- 总对总近24小时 -->
<bean id="bankDayScheduleDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="bankHourDetailSchedule" />
<property name="targetMethod" value="bankDay" />
<property name="concurrent" value="true" />
</bean>
<bean id="bankDayDetailTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="bankDayScheduleDetail" />
</property>
<!-- cron表达式 -->
<property name="cronExpression">
<value>0 1 0-23 * * ?</value>
</property>
</bean>

<!-- 总对总近一月 -->
<bean id="bankMonthScheduleDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="bankMonthDetailSchedule" />
<property name="targetMethod" value="bankMonth" />
<property name="concurrent" value="true" />
</bean>
<bean id="bankMonthDetailTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="bankMonthScheduleDetail" />
</property>
<!-- cron表达式 -->
<property name="cronExpression">
<value>0 0 0 */1 * ?</value>
</property>
</bean>

<!-- 总对总近一年 -->
<bean id="bankYearScheduleDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="bankYearDetailSchedule" />
<property name="targetMethod" value="bankYear" />
<property name="concurrent" value="true" />
</bean>
<bean id="bankYearDetailTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="bankYearScheduleDetail" />
</property>
<!-- cron表达式 -->
<property name="cronExpression">
<value>0 0 0 1 */1 ?</value>
</property>
</bean>

<!-- 天猫近24小时 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="tMallDayDetailTrigger" />
</list>
</property>
</bean>
<!-- 天猫近一月 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="tMallMonthDetailTrigger" />
</list>
</property>
</bean>
<!-- 天猫近一年 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="tMallYearDetailTrigger" />
</list>
</property>
</bean>
<!--移动商城近24小时 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="moveDayDetailTrigger" />
</list>
</property>
</bean>
<!-- 移动商城近一月 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="moveMonthDetailTrigger" />
</list>
</property>
</bean>
<!-- 移动商城近一年 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="moveYearDetailTrigger" />
</list>
</property>
</bean>
<!-- 总对总近24小时 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="bankDayDetailTrigger" />
</list>
</property>
</bean>
<!-- 总对总近一月 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="bankMonthDetailTrigger" />
</list>
</property>
</bean>
<!-- 总对总近一年 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="bankYearDetailTrigger" />
</list>
</property>
</bean>

<!-- 今日充值总笔数与今日成交总金额定义目标bean和bean中的方法 -->
<bean id="socketioJobTodayTotalData"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref local="socketIOScheduleTodayTotalData" />
</property>
<property name="targetMethod">
<!-- 要执行的方法名称 -->
<value>execute</value>
</property>

<property name="concurrent" value="true" />
</bean>

<!--今日充值总笔数与今日成交总金额定义触发的时间 -->
<bean id="socketioCronTodayTotalData" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="socketioJobTodayTotalData" />
</property>

<property name="cronExpression">
<value>0/1 * * * * ?</value>
</property>
</bean>

<!-- 今日充值总笔数与今日成交总金额管理触发器 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="socketioCronTodayTotalData" />
</list>
</property>
</bean>

<!-- 跌代二 运营分析定时器 -->
<bean id="operationTotalPushSchedule"
class="com.cmsz.visualization.schedule.SocketIOTradeDataTotalSchedule"></bean>

<!-- 定义目标bean和bean中的方法 -->
<bean id="operationTotalPushSocketioJob"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref local="operationTotalPushSchedule" />
</property>
<property name="targetMethod">
<!-- 要执行的方法名称 -->
<value>operationTotalPush</value>
</property>
<!-- <property name="concurrent" value="true" /> -->
</bean>

<!--定义触发的时间 -->
<bean id="operationTotalPushSocketioCron" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="operationTotalPushSocketioJob" />
</property>
<property name="cronExpression">
<value>5 0 0-23 * * ?</value>
</property>
</bean>

<!-- 管理触发器 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="operationTotalPushSocketioCron" />
</list>
</property>
</bean>

<!--迭代三首页健康度 -->
<!--健康度定义目标bean和bean中的方法 -->
<bean id="socketioJobHealth" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject"> <ref local="socketIOScheduleHealth" /> </property>
<property name="targetMethod">
<!-- 要执行的方法名称 -->
<value>execute</value>
</property>
<property name="concurrent" value="true" />

</bean>

<!--健康度定义触发的时间 -->
<bean id="socketioCronHealth" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="socketioJobHealth" />
</property>
<property name="cronExpression">
<value>0/5 * * * * ?</value>
</property>
</bean>

<!--健康度管理触发器 -->
<bean autowire="no" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list> <ref local="socketioCronHealth" /> </list>
</property>
</bean>

<!--迭代三首页性能指标 -->
<!--性能指标定义目标bean和bean中的方法 -->
<bean id="socketioJobPerformance"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref local="socketIOSchedulePerformance" />
</property>
<property name="targetMethod">
<value>execute</value>
</property>
<property name="concurrent" value="true" />
</bean>

<!--性能指标定义触发的时间 -->
<bean id="socketioCronPerformance" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="socketioJobPerformance" />
</property>
<property name="cronExpression">
<value>0/5 * * * * ?</value>
</property>
</bean>

<!--性能指标管理触发器 -->
<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="socketioCronPerformance" />
</list>
</property>
</bean>

<!-- indexMainMap定义目标bean和bean中的方法 -->
<bean id="indexMainMapSocketioJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="indexMainMapSchedule" />
<property name="targetMethod" value="mainMapPush" />
<property name="concurrent" value="true" />
</bean>

<!-- indexMainMap定义触发的时间 -->
<bean id="indexMainMapSocketioCron" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="indexMainMapSocketioJob" />
<property name="cronExpression">
<value>0/5 * * * * ?</value>
</property>
</bean>

<!-- indexMainMap管理触发器 -->
<bean autowire="no" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="indexMainMapSocketioCron" />
</list>
</property>
</bean>

<!-- 签解约近24小时 -->
<bean id="contractTerminaHourJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="contractTerminaHourSchedule" />
<property name="targetMethod" value="execute" />
<property name="concurrent" value="true" />
</bean>
<bean id="contractTerminaHourCron" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="contractTerminaHourJob" />
<property name="cronExpression">
<!-- 秒,分,小时,天,月 -->
<value>0 1 0-23 * * ?</value>
</property>
</bean>
<bean autowire="no" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="contractTerminaHourCron" />
</list>
</property>
</bean>

<!-- 签解约近一月 -->
<bean id="contractTerminaMonthJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="contractTerminaMonthSchedule" />
<property name="targetMethod" value="execute" />
<property name="concurrent" value="true" />
</bean>
<bean id="contractTerminaMonthCron" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="contractTerminaMonthJob" />
<property name="cronExpression">
<value>0 0 0 */1 * ?</value>
</property>
</bean>
<bean autowire="no" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="contractTerminaMonthCron"/>
</list>
</property>
</bean>

<!-- 签解约近一年 -->
<bean id="contractTerminaYearJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="contractTerminaYearSchedule"></property>
<property name="targetMethod" value="execute"></property>
<property name="concurrent" value="true" />
</bean>
<bean id="contractTerminaYearCron" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="contractTerminaYearJob" />
<property name="cronExpression">
<value>0 1 0 1 */1 ?</value>
<!-- <value>0/10 * * * * ?</value> -->
</property>
</bean>
<bean autowire="no" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="contractTerminaYearCron"/>
</list>
</property>
</bean>

<bean id="contractTotalMonthJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="contractMonthTotalSchedule" />
<property name="targetMethod" value="execute" />
<property name="concurrent" value="true" />
</bean>
<bean id="contractTotalMonthCron" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="contractTotalMonthJob" />
<property name="cronExpression">
<!-- 秒,分,小时,天,月 -->
<value>0 0 0 */1 * ?</value>
<!-- <value>0/3 * * * * ?</value>-->
</property>
</bean>
<bean autowire="no" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="contractTotalMonthCron" />
</list>
</property>
</bean>

</beans>

spring schedule的更多相关文章

  1. SpringBoot之旅 -- 定时任务两种(Spring Schedule 与 Quartz 整合 )实现

    相关文章 Spring Boot 相关文章目录 前言 最近在项目中使用到定时任务,之前一直都是使用Quartz 来实现,最近看Spring 基础发现其实Spring 提供 Spring Schedul ...

  2. spring schedule定时任务(一):注解的方式

    我所知道的java定时任务的几种常用方式: 1.spring schedule注解的方式: 2.spring schedule配置文件的方式: 3.java类继承TimerTask: 第一种方式的实现 ...

  3. Spring Schedule整合配置

    Spring Schedule是spring提供的任务调度框架.很简单,也很强大,简单是因为只需要在spring配置文件中写一行代码配置一下.就ok,强大是因为调度表达式.这里会给出一个网站,在线生成 ...

  4. SpringBoot系列:Spring Boot定时任务Spring Schedule

    Spring Schedule是Spring提供的定时任务框架,相较于Quartz,Schedule更加简单易用,在中小型应用中,对于大部分需求,Schedule都可以胜任. 一.Spring Sch ...

  5. 任务调度(02)Spring Schedule

    任务调度(02)Spring Schedule [toc] Spring 3.0 提供两种任务调度方式:一是定时任务调度:二是异步任务调度.这两种任务调度方式都是基于 JUC 实现的,是一种非常轻量级 ...

  6. Spring Schedule 实现定时任务

    很多时候我们都需要为系统建立一个定时任务来帮我们做一些事情,SpringBoot 已经帮我们实现好了一个,我们只需要直接使用即可,当然你也可以不用 SpringBoot 自带的定时任务,整合 Quar ...

  7. Spring Schedule 任务调度实现

    我们都知道任务调度可以用Quartz,但对于简单的定时任务,可以直接用Spring内置的Schedule来实现.可以由两种方式,注释+XML配置 注解方式: 注解也要先在sping.xml配置文件中配 ...

  8. spring schedule定时任务(二):配置文件的方式

    接着上一篇,这里使用spring配置文件的方式生成spring定时任务. 1.相应的web.xml没有什么变化,因此便不再罗列.同样的,相应的java代码业务逻辑改动也不大,只是在原来的基础上去掉@C ...

  9. Spring Schedule实现定时任务

    applicationContext.xml 1. 增加配置 <!-- 开启定时任务 --> <task:annotation-driven /> <!-- 开启注解 - ...

随机推荐

  1. BizTalk动手实验(八)消息路由

    1 课程简介 通过本课程熟悉BizTalk消息由的机制 2 准备工作 1. 熟悉XML.XML Schema.XSLT等相关XML开发技术 2. 新建BizTalk空项目 3 演示 3.1 动态消息路 ...

  2. angularjs - 415 (Unsupported Media Type)

    angularJs+springMVC angular表单提交一个user实体时,报 angularjs - 415 (Unsupported Media Type)错误!! 原因是$http({ u ...

  3. ExtJS笔记 Tree

    The Tree Panel Component is one of the most versatile Components in Ext JS and is an excellent tool ...

  4. Linux内核设计第四周——扒开系统调用三层皮

    Linux内核设计第四周 ——扒开系统调用三层皮 一.知识点总结 (一).系统调用基础知识 1.用户态和内核态 内核态:在高级别的状态下,代码可以执行特权指令,访问任意的物理地址: 用户态:在相应的低 ...

  5. Wordpress 标题设置

    使用标题格式:首页(网站标题 - 网站副标题),其他页面(页面标题 | 网站标题) 在后台找到头部文件head.php <?php wp_title('|', true, 'right'); e ...

  6. oracle: tochar(sysdate,'D')函数

    学习oracle时碰到tochar(sysdate,'D')函数,但是发现并不是星期几,如今天是20150317,周二,但是得到的值为3 开始以为是系统日期什么的原因,试了试 select to_ch ...

  7. nginx限制访问速度

    转自:http://siwei.me/blog/posts/nginx-ip 参考:http://tengine.taobao.org/document_cn/http_limit_req_cn.ht ...

  8. [Android Tips] 13. How to Detect Tablet

    /** * 判断是否是平板 * @param context * @return */ public static boolean isTablet(Context context) { return ...

  9. wkwebview a target="_blank" 打不开链接的解决方案

    - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigatio ...

  10. AJax 跨域问题

    从AJAX诞生那天起,XMLHttprequest对象不能跨域请求的问题就一直存在.这似乎是一个很经典的问题了.是由于javascript的同源策略(这里不作深入探讨)所导致. 解决的办法,大概有如下 ...