[SoapUI] 各种日期计算
import java.util.*;
import java.text.SimpleDateFormat; // current date
String dateNew = today() // tomorrow
String tomorrow = tomorrow() // yesterday
String yesterday = yesterday() // the day before yesterday
String theDayBeforeYesterday = theDayBeforeYesterday() // Last Market Close
String lastMarketClose = lastMarketClose()
log.info "------> lastMarketClose : "+lastMarketClose // Last Market Close -2 days
String lastMarketCloseMinus2Days = lastMarketCloseMinus2Days() // Two years ago of Last Market Close -2 days
String twoYearsAgoOfLastMarketCloseMinus2Days = twoYearsAgoOfLastMarketCloseMinus2Days(lastMarketCloseMinus2Days) // yesterday of Last Market Close
String yesterdayOfLastMarketClose = yesterdayOfLastMarketClose(lastMarketClose) // a month ago of Last Market Close
String aMonthAgoOfLastMarketClose = aMonthAgoOfLastMarketClose(lastMarketClose) // three months ago of Last Market Close
String threeMonthsAgoOfLastMarketClose = threeMonthsAgoOfLastMarketClose(lastMarketClose) // three years ago of Last Market Close
String threeYearsAgoOfLastMarketClose = threeYearsAgoOfLastMarketClose(lastMarketClose)
log.info "------> threeYearsAgoOfLastMarketClose : "+threeYearsAgoOfLastMarketClose // the last day of last week
String theLastDayOfLastWeek = theLastDayOfLastWeek() // the last day of last month
String theLastDayOfLastMonth = theLastDayOfLastMonth() // Get the same day of last month
String theSameDayOfLastMonth = theSameDayOfLastMonth() // The first day of the quarter
String theFirstDayOfTheQuarter = theFirstDayOfTheQuarter() // The last day of last quarter
String theLastDayOfLastQuarter = theLastDayOfLastQuarter(theFirstDayOfTheQuarter) // a year ago after The last day of last quarter
String aYearAgoAfterTheLastDayOfLastQuarter = aYearAgoAfterTheLastDayOfLastQuarter(theFirstDayOfTheQuarter) // The first day of last quarter
String theFirstDayOfLastQuarter = theFirstDayOfLastQuarter(theFirstDayOfTheQuarter) // The last day of two quarters ago
String theLastDayOfTwoQuartersAgo = theLastDayOfTwoQuartersAgo(theLastDayOfLastQuarter) // The first day of six months ago after two quarters
String theFirstDayOfSixMonthsAgoAfterTwoQuarters = theFirstDayOfSixMonthsAgoAfterTwoQuarters(theLastDayOfTwoQuartersAgo) // yesterday of three months ago
String yesterdayOfThreeMonthsAgo = yesterdayOfThreeMonthsAgo() // The first day of two months ago
String theFirstDayOfTwoMonthsAgo = theFirstDayOfTwoMonthsAgo() // The last day of two months ago
String theLastDayOfTwoMonthsAgo = theLastDayOfTwoMonthsAgo() // The first day of three months ago
String theFirstDayOfThreeMonthsAgo = theFirstDayOfThreeMonthsAgo() // The first day of six months ago
String theFirstDayOfSixMonthsAgo = theFirstDayOfSixMonthsAgo() // The first day of this year
String theFirstDayOfThisYear = theFirstDayOfThisYear() // The last day of last year
String theLastDayOfLastYear = theLastDayOfLastYear() // tomorrow of last year
String tomorrowOfLastYear = tomorrowOfLastYear() // the first day of this month last year
String theFirstDayOfThisMonthLastYear = theFirstDayOfThisMonthLastYear() // the first day of last year
String theFirstDayOfLastYear = theFirstDayOfLastYear() // the same day of this month three years ago
String theSameDayOfThisMonthThreeYearsAgo = theSameDayOfThisMonthThreeYearsAgo() // the first day of this month three years ago
String theFirstDayOfThisMonthThreeYearsAgo = theFirstDayOfThisMonthThreeYearsAgo() // the first day of three years ago
String theFirstDayOfThreeYearsAgo = theFirstDayOfThreeYearsAgo() // Set the project level property : currentDate,yesterDay,lastMonth , its value will updated with dateNew
testRunner.testCase.testSuite.project.setPropertyValue( "currentDate", dateNew )
testRunner.testCase.testSuite.project.setPropertyValue( "tomorrow", tomorrow )
testRunner.testCase.testSuite.project.setPropertyValue( "yesterday", yesterday )
testRunner.testCase.testSuite.project.setPropertyValue( "theDayBeforeYesterday", theDayBeforeYesterday )
testRunner.testCase.testSuite.project.setPropertyValue( "lastMarketClose", lastMarketClose )
testRunner.testCase.testSuite.project.setPropertyValue( "lastMarketCloseMinus2Days", lastMarketCloseMinus2Days )
testRunner.testCase.testSuite.project.setPropertyValue( "twoYearsAgoOfLastMarketCloseMinus2Days", twoYearsAgoOfLastMarketCloseMinus2Days )
testRunner.testCase.testSuite.project.setPropertyValue( "threeYearsAgoOfLastMarketClose", threeYearsAgoOfLastMarketClose )
testRunner.testCase.testSuite.project.setPropertyValue( "theDayBeforeYesterday", theDayBeforeYesterday )
testRunner.testCase.testSuite.project.setPropertyValue( "theLastDayOfLastWeek", theLastDayOfLastWeek )
testRunner.testCase.testSuite.project.setPropertyValue( "yesterdayOfLastMarketClose", yesterdayOfLastMarketClose )
testRunner.testCase.testSuite.project.setPropertyValue( "aMonthAgoOfLastMarketClose", aMonthAgoOfLastMarketClose )
testRunner.testCase.testSuite.project.setPropertyValue( "threeMonthsAgoOfLastMarketClose", threeMonthsAgoOfLastMarketClose )
testRunner.testCase.testSuite.project.setPropertyValue( "theFirstDayOfTheQuarter", theFirstDayOfTheQuarter )
testRunner.testCase.testSuite.project.setPropertyValue( "theLastDayOfLastQuarter", theLastDayOfLastQuarter )
testRunner.testCase.testSuite.project.setPropertyValue( "aYearAgoAfterTheLastDayOfLastQuarter", aYearAgoAfterTheLastDayOfLastQuarter )
testRunner.testCase.testSuite.project.setPropertyValue( "theFirstDayOfLastQuarter", theFirstDayOfLastQuarter )
testRunner.testCase.testSuite.project.setPropertyValue( "theLastDayOfTwoQuartersAgo", theLastDayOfTwoQuartersAgo )
testRunner.testCase.testSuite.project.setPropertyValue( "theFirstDayOfSixMonthsAgoAfterTwoQuarters", theFirstDayOfSixMonthsAgoAfterTwoQuarters )
testRunner.testCase.testSuite.project.setPropertyValue( "theSameDayOfLastMonth", theSameDayOfLastMonth )
testRunner.testCase.testSuite.project.setPropertyValue( "theLastDayOfLastMonth", theLastDayOfLastMonth )
testRunner.testCase.testSuite.project.setPropertyValue( "yesterdayOfThreeMonthsAgo", yesterdayOfThreeMonthsAgo )
testRunner.testCase.testSuite.project.setPropertyValue( "theFirstDayOfTwoMonthsAgo", theFirstDayOfTwoMonthsAgo )
testRunner.testCase.testSuite.project.setPropertyValue( "theLastDayOfTwoMonthsAgo", theLastDayOfTwoMonthsAgo )
testRunner.testCase.testSuite.project.setPropertyValue( "theFirstDayOfThreeMonthsAgo", theFirstDayOfThreeMonthsAgo )
testRunner.testCase.testSuite.project.setPropertyValue( "theFirstDayOfSixMonthsAgo", theFirstDayOfSixMonthsAgo )
testRunner.testCase.testSuite.project.setPropertyValue( "theFirstDayOfThisYear", theFirstDayOfThisYear )
testRunner.testCase.testSuite.project.setPropertyValue( "theLastDayOfLastYear", theLastDayOfLastYear )
testRunner.testCase.testSuite.project.setPropertyValue( "tomorrowOfLastYear", tomorrowOfLastYear )
testRunner.testCase.testSuite.project.setPropertyValue( "theFirstDayOfThisMonthLastYear", theFirstDayOfThisMonthLastYear )
testRunner.testCase.testSuite.project.setPropertyValue( "theFirstDayOfLastYear", theFirstDayOfLastYear )
testRunner.testCase.testSuite.project.setPropertyValue( "theSameDayOfThisMonthThreeYearsAgo", theSameDayOfThisMonthThreeYearsAgo )
testRunner.testCase.testSuite.project.setPropertyValue( "theFirstDayOfThisMonthThreeYearsAgo", theFirstDayOfThisMonthThreeYearsAgo )
testRunner.testCase.testSuite.project.setPropertyValue( "theFirstDayOfThreeYearsAgo", theFirstDayOfThreeYearsAgo ) //**********************************************************************Methods************************************************************************** def today(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
str = sdf.format(lastDate.getTime());
return str;
} def yesterday(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.DATE, -1);
str = sdf.format(lastDate.getTime());
return str;
} def theDayBeforeYesterday(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.DATE, -2);
str = sdf.format(lastDate.getTime());
return str;
} def theLastDayOfLastMonth(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.MONTH, -1);
lastDate.set(Calendar.DATE, 1);
lastDate.roll(Calendar.DATE, -1);
str = sdf.format(lastDate.getTime());
return str;
} def theSameDayOfLastMonth(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.roll(Calendar.MONTH, -1);
str = sdf.format(lastDate.getTime());
return str;
} def tomorrow(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def yesterdayOfThreeMonthsAgo(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.MONTH, -3);
lastDate.add(Calendar.DATE, -1);
str = sdf.format(lastDate.getTime());
return str;
} def theFirstDayOfTwoMonthsAgo(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.MONTH, -2);
lastDate.set(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def theLastDayOfTwoMonthsAgo(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.MONTH, -2);
lastDate.set(Calendar.DATE, 1);
lastDate.roll(Calendar.DATE, -1);
str = sdf.format(lastDate.getTime());
return str;
} def theFirstDayOfThreeMonthsAgo(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.MONTH, -3);
lastDate.set(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def theFirstDayOfSixMonthsAgo(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.MONTH, -6);
lastDate.set(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def tomorrowOfLastYear(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.YEAR, -1);
lastDate.add(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def theSameDayOfThisMonthThreeYearsAgo(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.YEAR, -3);
str = sdf.format(lastDate.getTime());
return str;
} def theFirstDayOfThisMonthThreeYearsAgo(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.YEAR, -3);
lastDate.set(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def theFirstDayOfThreeYearsAgo(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.YEAR, -3);
lastDate.set(Calendar.MONTH, 0);
lastDate.set(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def theFirstDayOfThisYear(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.set(Calendar.MONTH, 0);
lastDate.set(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def theLastDayOfLastYear(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.YEAR, -1);
lastDate.set(Calendar.MONTH, 11);
lastDate.set(Calendar.DATE, 31);
str = sdf.format(lastDate.getTime());
return str;
} def theFirstDayOfTheQuarter(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
int i = 0
int j = 0
int month = lastDate.get(Calendar.MONTH)
if (month >= 1 && month <= 3) {
j = 0;
}
if (month >= 4 && month <= 6) {
j = 3;
}
if (month >= 7 && month <= 9) {
j = 6;
}
if (month >= 10 && month <= 12) {
j = 9;
}
lastDate.set(Calendar.MONTH, j);
lastDate.set(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def theLastDayOfLastQuarter(String theFirstDayOfTheQuarter){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(theFirstDayOfTheQuarter)
Calendar lastDate = Calendar.getInstance();
lastDate.setTime(date);
lastDate.add(Calendar.MONTH, -1);
lastDate.roll(Calendar.DATE, -1);
str = sdf.format(lastDate.getTime());
return str;
} def aYearAgoAfterTheLastDayOfLastQuarter(String theFirstDayOfTheQuarter){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(theFirstDayOfTheQuarter)
Calendar lastDate = Calendar.getInstance();
lastDate.setTime(date);
lastDate.add(Calendar.YEAR, -1);
str = sdf.format(lastDate.getTime());
return str;
} def theFirstDayOfLastQuarter(String theFirstDayOfTheQuarter){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(theFirstDayOfTheQuarter)
Calendar lastDate = Calendar.getInstance();
lastDate.setTime(date);
lastDate.add(Calendar.MONTH, -3);
str = sdf.format(lastDate.getTime());
return str;
} def theLastDayOfTwoQuartersAgo(String theLastDayOfLastQuarter){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(theLastDayOfLastQuarter)
Calendar lastDate = Calendar.getInstance();
lastDate.setTime(date);
lastDate.add(Calendar.MONTH, -3);
lastDate.set(Calendar.DATE, 1);
lastDate.roll(Calendar.DATE, -1);
str = sdf.format(lastDate.getTime());
return str;
} def theFirstDayOfSixMonthsAgoAfterTwoQuarters(String theLastDayOfTwoQuartersAgo){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(theLastDayOfTwoQuartersAgo)
Calendar lastDate = Calendar.getInstance();
lastDate.setTime(date);
lastDate.add(Calendar.MONTH, -8);
lastDate.set(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def theFirstDayOfThisMonthLastYear(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.YEAR, -1);
lastDate.set(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def theFirstDayOfLastYear(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.YEAR, -1);
lastDate.set(Calendar.MONTH,0)
lastDate.set(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def theLastDayOfLastWeek(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.WEEK_OF_MONTH,-1);
lastDate.set(Calendar.DAY_OF_WEEK, Calendar.SATURDAY);
str = sdf.format(lastDate.getTime());
return str;
} def lastMarketClose(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
String ss = lastDate.get(Calendar.DAY_OF_WEEK)
if ("1".equals(ss)){
lastDate.add(Calendar.WEEK_OF_MONTH,-1);
lastDate.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY)
}
if ("7".equals(ss)){
lastDate.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY)
}
str = sdf.format(lastDate.getTime());
return str;
} def lastMarketCloseMinus2Days(){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar lastDate = Calendar.getInstance();
lastDate.add(Calendar.DATE, -2);
String ss = lastDate.get(Calendar.DAY_OF_WEEK)
if ("1".equals(ss) ){
lastDate.add(Calendar.WEEK_OF_MONTH,-1);
lastDate.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY)
}
if ("7".equals(ss)){
lastDate.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY)
}
str = sdf.format(lastDate.getTime());
return str;
} def twoYearsAgoOfLastMarketCloseMinus2Days(String lastMarketCloseMinus2Days){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(lastMarketCloseMinus2Days)
Calendar lastDate = Calendar.getInstance();
lastDate.setTime(date);
lastDate.add(Calendar.YEAR, -2)
lastDate.add(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def yesterdayOfLastMarketClose(String lastMarketClose){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(lastMarketClose)
Calendar lastDate = Calendar.getInstance();
lastDate.setTime(date);
lastDate.add(Calendar.DATE, -1);
str = sdf.format(lastDate.getTime());
return str;
} def aMonthAgoOfLastMarketClose(String lastMarketClose){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(lastMarketClose)
Calendar lastDate = Calendar.getInstance();
lastDate.setTime(date);
lastDate.add(Calendar.MONTH, -1)
lastDate.add(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def threeMonthsAgoOfLastMarketClose(String lastMarketClose){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(lastMarketClose)
Calendar lastDate = Calendar.getInstance();
lastDate.setTime(date);
lastDate.add(Calendar.MONTH, -3)
lastDate.add(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
} def threeYearsAgoOfLastMarketClose(String lastMarketClose){
String str = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(lastMarketClose)
Calendar lastDate = Calendar.getInstance();
lastDate.setTime(date);
lastDate.add(Calendar.YEAR, -3)
lastDate.add(Calendar.DATE, 1);
str = sdf.format(lastDate.getTime());
return str;
}
[SoapUI] 各种日期计算的更多相关文章
- java日期比较,日期计算
版权声明:本文为楼主原创文章,未经楼主允许不得转载,如要转载请注明来源. 都是常用的日期之间的比较方法,供以后参考. 热身:获取当前时间 SimpleDateFormat df = new Simpl ...
- CCF真题之日期计算
201509-2 日期计算 问题描述 给定一个年份y和一个整数d,问这一年的第d天是几月几日? 注意闰年的2月有29天.满足下面条件之一的是闰年: 1) 年份是4的整数倍,而且不是100的整数倍: 2 ...
- SQL通过日期计算年龄
首先建立一个表如下: ======================= BirthDay datetime not null Age 通过公式计算得出 ======================= 以 ...
- CalendarHelper日期计算工具,各种日期的获取和计算
今天分享一个日期获取和计算的工具类,这个最初是用在项目中获取每周每月日期用的. <Attention> 之后逛帖子的时候发现了这个专门处理日期的库,java上也有,android上还为了避 ...
- php 日期 - 计算2个日期的差值
/** * 日期-计算2个日期的差值 * @return int */ public function get_difference($date, $new_date) { $date = strto ...
- Javascript扩展String.prototype实现格式金额、格式时间、字符串连接、计算长度、是否包含、日期计算等功能
<script src="Js/jquery-3.1.1.min.js"></script> <script type="text/java ...
- 日期计算、正则、sequence、索引、表连接、mybatis
************************** mybatis ******************************************* #{} 的参数替换是发生在 DBMS 中, ...
- JAVA中日期转换和日期计算的方法
日期的格式有很多形式,在使用过程中经常需要转换,下面是各种类型转换的使用例子以及日期计算方法的例子. 一.不同格式日期相互转换方法 public class TestDateConvertUtil { ...
- C语言 · 日期计算
算法提高 日期计算 时间限制:1.0s 内存限制:256.0MB 问题描述 已知2011年11月11日是星期五,问YYYY年MM月DD日是星期几?注意考虑闰年的情况.尤其是逢百年不闰 ...
随机推荐
- 40. Linux下7-zip解压到当前目录的命令
7z x test.zip 解压到当前目录下,但保留原来的目录结构 7z e test.zip 解压到当前目录下,不保留原来的目录结构
- leetcode344
public class Solution { public string ReverseString(string s) { var list = s.Reverse(); StringBuilde ...
- java 项目中类找不到异常解决办法
最后点击Apply and Close就可以了
- ResponseUtil数据传递至前端
package com.java1234.util; import java.io.OutputStream; import java.io.PrintWriter; import javax.ser ...
- delphi 中判断对象是否具备某一属性
Uses TypInfo; {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); ...
- ArcGIS案例学习笔记2_2
ArcGIS案例学习笔记2_2 联系方式:谢老师,135_4855_4328,xiexiaokui#qq.com 时间:第二天下午 2018年8月12日 案例1:模型构建器,山顶点提取 背景:数据量大 ...
- websoket
http://blog.csdn.net/xueling022/article/details/52902358
- PIE结对编程
学习进度条 点滴成就 学习时间 新编写代码行数 博客量 学到知识点 第一周 8 0 0 了解软件工程 第二周 7 0 1 了解软件工程 第三周 11 0 1 用例图 第四周 6 25 0 结对编程 第 ...
- android笔记:Service
服务:在后台运行,没有界面的组件. 服务生命周期如下: 两种启动方式: 1.startService(): onCreate()-->onStartCommand()-->onDestro ...
- 数据库事务(Database Transaction)
事务(Transaction)是访问并可能更新数据库中各种数据项的一个程序执行单元(unit).事务由事务开始(begin transaction)和事务结束(commit transaction或 ...