spring schedule
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的更多相关文章
- SpringBoot之旅 -- 定时任务两种(Spring Schedule 与 Quartz 整合 )实现
相关文章 Spring Boot 相关文章目录 前言 最近在项目中使用到定时任务,之前一直都是使用Quartz 来实现,最近看Spring 基础发现其实Spring 提供 Spring Schedul ...
- spring schedule定时任务(一):注解的方式
我所知道的java定时任务的几种常用方式: 1.spring schedule注解的方式: 2.spring schedule配置文件的方式: 3.java类继承TimerTask: 第一种方式的实现 ...
- Spring Schedule整合配置
Spring Schedule是spring提供的任务调度框架.很简单,也很强大,简单是因为只需要在spring配置文件中写一行代码配置一下.就ok,强大是因为调度表达式.这里会给出一个网站,在线生成 ...
- SpringBoot系列:Spring Boot定时任务Spring Schedule
Spring Schedule是Spring提供的定时任务框架,相较于Quartz,Schedule更加简单易用,在中小型应用中,对于大部分需求,Schedule都可以胜任. 一.Spring Sch ...
- 任务调度(02)Spring Schedule
任务调度(02)Spring Schedule [toc] Spring 3.0 提供两种任务调度方式:一是定时任务调度:二是异步任务调度.这两种任务调度方式都是基于 JUC 实现的,是一种非常轻量级 ...
- Spring Schedule 实现定时任务
很多时候我们都需要为系统建立一个定时任务来帮我们做一些事情,SpringBoot 已经帮我们实现好了一个,我们只需要直接使用即可,当然你也可以不用 SpringBoot 自带的定时任务,整合 Quar ...
- Spring Schedule 任务调度实现
我们都知道任务调度可以用Quartz,但对于简单的定时任务,可以直接用Spring内置的Schedule来实现.可以由两种方式,注释+XML配置 注解方式: 注解也要先在sping.xml配置文件中配 ...
- spring schedule定时任务(二):配置文件的方式
接着上一篇,这里使用spring配置文件的方式生成spring定时任务. 1.相应的web.xml没有什么变化,因此便不再罗列.同样的,相应的java代码业务逻辑改动也不大,只是在原来的基础上去掉@C ...
- Spring Schedule实现定时任务
applicationContext.xml 1. 增加配置 <!-- 开启定时任务 --> <task:annotation-driven /> <!-- 开启注解 - ...
随机推荐
- Web前端开发基础 第四课(盒代码模型)
盒模型代码简写 还记得在讲盒模型时外边距(margin).内边距(padding)和边框(border)设置上下左右四个方向的边距是按照顺时针方向设置的:上右下左.具体应用在margin和paddin ...
- (三)CMS Collector
有些资料中,为区别parallel collector ,将应用与gc并发成为并行,在接下来的文章中,仍称为并发. -XX:useConcMarkSweepGC,可以用于minor gc和major ...
- ios-实现项目在开发、测试、正式环境快速部署
快速部署:简单的来说,就是不用更改开发.测试.正式环境下的 url ,来实现在同一台测试手机快速部署三种项目状态. Bundle ID一样只会出现一个app:不一样会出现三个app: 具体步骤: 一. ...
- Codeigniter 3.0 相关文档 part one
分页配置项 http://stackoverflow.com/questions/18418900/codeigniter-pagination-config-without-repeating-wi ...
- 简单的cc攻击防御
简单的cc攻击防御cckiller 一.下载#wget wget --no-check-certificate https://zhangge.net/wp-content/uploads/files ...
- Objective-C 在Categroy中创建属性(Property)
Objective-c中category是不能直接创建属性的,这时候我们要用到Objc的runtime来实现 用到的方法有两个 一个是get方法 一个set方法 //get方法objc_getAsso ...
- Android如何连接MySQL数据库
Android开发中,大多数连接到远程MySQL数据库的方法是加入特定的Service到代码中.由于MySQL通常是和PHP一起使用的,最简单以及最常见的方法是写PHP脚本管理数据连接,以及从Andr ...
- iOS开发-Masonry简易教程
关于iOS布局自动iPhone6之后就是AutoLayOut,AutoLayOut固然非常好用,不过有时候我们需要在页面手动进行页面布局,VFL算是一种选择,如果对VFL不是很熟悉可以参考iOS开发- ...
- net-snmp源码VS2013编译添加加密支持(OpenSSL)(在VS里配置编译OpenSSL)
net-snmp源码VS2013编译添加加密支持(OpenSSL) snmp v3 协议使用了基于用户的安全模型,具有认证和加密两个模块. 认证使用的算法是一般的消息摘要算法,例如MD5/SHA等.这 ...
- Samba配置
https://wiki.samba.org/index.php/Samba_AD_DC_Port_Usage 安装后开放端口 1 ACCEPT tcp -- 0.0.0.0/0 ...