搜索
查看
编辑修改
首页
UNITY
NODEJS
PYTHON
AI
GIT
PHP
GO
CEF3
JAVA
HTML
CSS
搜索
weixin_40725706
这个屌丝很懒,什么也没留下!
关注作者
热门标签
jquery
HTML
CSS
PHP
ASP
PYTHON
GO
AI
C
C++
C#
PHOTOSHOP
UNITY
iOS
android
vue
xml
爬虫
SEO
LINUX
WINDOWS
JAVA
MFC
CEF3
CAD
NODEJS
GIT
Pyppeteer
article
热门文章
1
鸿蒙系列--组件介绍之其他基础组件(下)_鸿蒙scrollbar组件讲解
2
新版 Microsoft Edge浏览器 使用Alt+Tab 键 切换 窗口显示多个Edge浏览器页面_edge alt+tab
3
IOS面试题object-c 146-150
4
Error while executing: am start -n错误解决方案_error while executing: am start -n "com.example.ls
5
【HarmonyOS】1、HarmonyOS应用开发基础详解(持续更新)
6
(10-2)大模型优化算法和技术:模型并行和数据并行_大模型并行计算什么意思
7
java project clean_如何在Java maven项目的命令提示符中执行'project> clean'
8
使用Jan下载AI模型失败_download failedmodelundefined downloadfailed:conne
9
python各种空变量问题_python中检测多个变量中哪一个或多个变量为空
10
Android-dp、sp等像素单位以及48dp调和原则_48dp dp单位
当前位置:
article
> 正文
java日期工具类DateUtil_javascript dateutil.dateadd
作者:weixin_40725706 | 2024-03-18 05:05:38
赞
踩
javascript dateutil.dateadd
package cn.wsria.util.date;
import java.sql.Time;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
/**
* <p><b>Title:</b> 日期工具类</p>
* <p><b>Description:</b></p>
*
* @author 闫洪磊
*/
public class DateUtil {
public final static String FORMAT_DATE = "yyyy-MM-dd";
public final static String FORMAT_DATETIME = "yyyy-MM-dd HH:mm:ss";
public final static String FORMAT_DATE_ZH = "yyyy年MM月dd日";
public final static String FORMAT_DATETIME_ZH = "yyyy年MM月dd日 HH时mm分ss秒";
public final static String TYPE_DATE = "date";
public final static String TYPE_DATETIME = "datetime";
/**
* 日期排序类型-升序
*/
public final static int DATE_ORDER_ASC = 0;
/**
* 日期排序类型-降序
*/
public final static int DATE_ORDER_DESC = 1;
/**
* 用字符串获得日期
* @throws ParseException
* @dateValue 日期字符串
* @dateType 格式化的类型,date和datetime
*/
public static Date getDate(String dateValue, String dateType) throws ParseException {
if (dateValue == null)
return null;
if (dateType.equals(TYPE_DATE)) {
SimpleDateFormat sfdate = new SimpleDateFormat(FORMAT_DATE);
return sfdate.parse(dateValue);
} else if (dateType.equals(TYPE_DATETIME)) {
SimpleDateFormat sftime = new SimpleDateFormat(FORMAT_DATETIME);
return sftime.parse(dateValue);
}
return null;
}
/**
* 用字符串获得java.sql.Date日期
* @throws ParseException
* @dateValue 日期字符串
* @dateType 格式化的类型,date和datetime
*/
public static java.sql.Date getSqlDate(String dateValue, String dateType) throws ParseException {
Date date = getDate(dateValue, dateType);
if (date == null) {
return null;
}
return new java.sql.Date(date.getTime());
}
/**
*将日期加上某些天或减去天数)返回字符串
* @param date 待处理日期
* @param to 加减的天数
* @return 日期
*/
public static Date dateAdd(String date, int to) {
java.util.Date d = null;
try {
d = java.sql.Date.valueOf(date);
} catch (Exception e) {
e.printStackTrace();
d = new java.util.Date();
}
Calendar strDate = Calendar.getInstance();
strDate.setTime(d);
strDate.add(Calendar.DATE, to); // 日期减 如果不够减会将月变动
return strDate.getTime();
}
/**
*将日期加上某些天或减去天数)返回字符串
* @param date 待处理日期
* @param to 加减的天数
* @return 日期
*/
public static java.sql.Date dateAdd(java.sql.Date date, int to) {
Calendar strDate = Calendar.getInstance();
strDate.setTime(date);
strDate.add(Calendar.DATE, to); // 日期减 如果不够减会将月变动
return new java.sql.Date(strDate.getTime().getTime());
}
/**
* 格式化日期
* @param date 日期对象
* @param splitChar 分隔字符
* @return
*/
public static String formatDate(Date date, String splitChar) {
java.text.SimpleDateFormat sfdate = new java.text.SimpleDateFormat("yyyy" + splitChar
+ "MM" + splitChar + "dd");
return sfdate.format(date);
}
/**
* @dateValue 日期对象,可以是java.util.Date和java.sql.Date
* @dateType 格式化的类型,date和datetime
*/
public static String format(Object dateValue, String dateType) {
if (dateValue == null)
return "";
if (dateValue instanceof java.sql.Date) {
return dateValue.toString();
} else if (dateValue instanceof java.util.Date) {
if (dateType.equals(TYPE_DATE)) {
java.text.SimpleDateFormat sfdate = new java.text.SimpleDateFormat(FORMAT_DATE);
return sfdate.format(dateValue);
} else if (dateType.equals(TYPE_DATETIME)) {
java.text.SimpleDateFormat sftime = new java.text.SimpleDateFormat(FORMAT_DATETIME);
return sftime.format(dateValue);
} else {
return "非法日期格式[" + dateType + "]";
}
} else {
return "非日期类型";
}
}
/**
* 转换日期对象为中文化日期
* @dateValue 日期对象,可以是java.util.Date和java.sql.Date
* @dateType 格式化的类型,date和datetime
*/
public static String formatZh(Date dateValue, String dateType) {
if (dateValue == null)
return "";
if (dateValue instanceof java.sql.Date) {
return dateValue.toString();
} else if (dateValue instanceof java.util.Date) {
if (dateType.equals(TYPE_DATE)) {
java.text.SimpleDateFormat sfdate = new java.text.SimpleDateFormat(FORMAT_DATE_ZH);
return sfdate.format(dateValue);
} else if (dateType.equals(TYPE_DATETIME)) {
java.text.SimpleDateFormat sftime = new java.text.SimpleDateFormat(FORMAT_DATETIME_ZH);
return sftime.format(dateValue);
} else {
return "非法日期格式[" + dateType + "]";
}
} else {
return "非日期类型";
}
}
/**
* 转化成年月日期
* @param sDate 字符型日期:2009-02-02
* @param DelimeterChar 分割符号比如 / -
* @return 年月日期 :2009年02月02日
*/
public static String chDateChange(String sDate, String DelimeterChar) {
String tmpArr[] = sDate.split(DelimeterChar);
tmpArr[0] = tmpArr[0] + "年";
tmpArr[1] = tmpArr[1] + "月";
tmpArr[2] = tmpArr[2] + "日";
return tmpArr[0] + tmpArr[1] + tmpArr[2];
}
/**
* 得到系统日期
* @return YYYY-MM-DD
*/
public static String getSysdate() {
java.sql.Timestamp timeNow = new java.sql.Timestamp(System.currentTimeMillis());
return timeNow.toString().substring(0, 10);
}
/**
* 得到系统日期
* @return YYYY-MM-DD
*/
public static String getSysdate(String formatType) {
java.sql.Timestamp timeNow = new java.sql.Timestamp(System.currentTimeMillis());
return formatZh(timeNow, formatType);
}
/**
* 得到某天是周几
* @param strDay
* @return 周几
*/
public static int getWeekDay(String strDay) {
Date day = DateUtil.dateAdd(strDay, -1);
Calendar strDate = Calendar.getInstance();
strDate.setTime(day);
int meStrDate = strDate.get(Calendar.DAY_OF_WEEK);
return meStrDate;
}
/**
* 得到某天是周几
* @param strDay
* @return 周几
*/
public static int getWeekDay(Date date) {
Date day = DateUtil.dateAdd(format(date, "date"), -1);
Calendar strDate = Calendar.getInstance();
strDate.setTime(day);
int meStrDate = strDate.get(Calendar.DAY_OF_WEEK);
return meStrDate;
}
/**
* 取得两个日期段的日期间隔
*
* @author color
* @param t1 时间1
* @param t2 时间2
* @return t2 与t1的间隔天数
* @throws ParseException
* 如果输入的日期格式不是0000-00-00 格式抛出异常
*/
public static int getBetweenDays(String t1, String t2) throws ParseException {
DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
int betweenDays = 0;
Date d1 = format.parse(t1);
Date d2 = format.parse(t2);
betweenDays = getBetweenDays(d1, d2);
return betweenDays;
}
/**
* 取得两个日期段的日期间隔
*
* @author color
* @param t1 时间1
* @param t2 时间2
* @param swapDate 当日期1小于日期2时是否交换两个日期值
* @return t2 与t1的间隔天数
* @throws ParseException
* 如果输入的日期格式不是0000-00-00 格式抛出异常
*/
public static int getBetweenDays(String t1, String t2, boolean swapDate) throws ParseException {
DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
int betweenDays = 0;
Date d1 = format.parse(t1);
Date d2 = format.parse(t2);
betweenDays = getBetweenDays(d1, d2, swapDate);
return betweenDays;
}
/**
* 取得两个日期段的日期间隔
* @param d1 日期1
* @param d2 日期2
* @param swapDate 当日期1小于日期2时是否交换两个日期值
* @return t2 与t1的间隔天数
*/
public static int getBetweenDays(Date d1, Date d2, boolean swapDate) {
if (d1 == null || d2 == null) {
return -1;
}
int betweenDays;
Calendar c1 = Calendar.getInstance();
Calendar c2 = Calendar.getInstance();
c1.setTime(d1);
c2.setTime(d2);
if (swapDate) {
// 保证第二个时间一定大于第一个时间
if (c1.after(c2)) {
c2.setTime(d1);
c1.setTime(d2);
}
}
int betweenYears = c2.get(Calendar.YEAR) - c1.get(Calendar.YEAR);
betweenDays = c2.get(Calendar.DAY_OF_YEAR) - c1.get(Calendar.DAY_OF_YEAR);
for (int i = 0; i < betweenYears; i++) {
c1.set(Calendar.YEAR, (c1.get(Calendar.YEAR) + 1));
betweenDays += c1.getMaximum(Calendar.DAY_OF_YEAR);
}
return betweenDays;
}
/**
* 取得两个日期段的日期间隔
* @param d1 日期1
* @param d2 日期2
* @return t2 与t1的间隔天数
*/
private static int getBetweenDays(Date d1, Date d2) {
if (d1 == null || d2 == null) {
return -1;
}
int betweenDays;
Calendar c1 = Calendar.getInstance();
Calendar c2 = Calendar.getInstance();
c1.setTime(d1);
c2.setTime(d2);
// 保证第二个时间一定大于第一个时间
if (c1.after(c2)) {
c2.setTime(d1);
c1.setTime(d2);
}
int betweenYears = c2.get(Calendar.YEAR) - c1.get(Calendar.YEAR);
betweenDays = c2.get(Calendar.DAY_OF_YEAR) - c1.get(Calendar.DAY_OF_YEAR);
for (int i = 0; i < betweenYears; i++) {
c1.set(Calendar.YEAR, (c1.get(Calendar.YEAR) + 1));
betweenDays += c1.getMaximum(Calendar.DAY_OF_YEAR);
}
return betweenDays;
}
/**
* 判断指定日期是否在一个日期范围内
* @param fromDate 范围开始日期
* @param toDate 范围结束日期
* @param testDate 测试日期
* @return 在范围内true,否则false
*/
public static boolean betweenDays(java.sql.Date fromDate, java.sql.Date toDate, java.sql.Date testDate) {
if (fromDate == null || toDate == null || testDate == null) {
return false;
}
//1、 交换开始和结束日期
if (fromDate.getTime() > toDate.getTime()) {
java.sql.Date tempDate = fromDate;
fromDate = toDate;
toDate = tempDate;
}
//2、缩小范围
long testDateTime = testDate.getTime();
if ( (testDateTime > fromDate.getTime() && testDateTime > toDate.getTime())
|| testDateTime < fromDate.getTime() && testDateTime < toDate.getTime()) {
return false;
}
return true;
}
/**
* 得到指定年、月的最后一天
* @param year 年
* @param month 月
* @return 本年月的最后一天,如果2009,10,返回结果:2009-10-31
*/
public static String getLastDateDayOfMonth(int year, int month) {
Calendar cal = Calendar.getInstance();
cal.set(Calendar.YEAR, year);
cal.set(Calendar.MONTH, month);
// 某年某月的最后一天
int lastDate = cal.getActualMaximum(Calendar.DATE);
return year + "-" + (month + 1) + "-" + lastDate;
}
/**
* 判断两个日期是否为同一天
* @param d1 日期一
* @param d2 日期二
* @return 同一天true,不是同一天false
*/
public static boolean isSameDate(Date d1, Date d2) {
boolean result = false;
Calendar c1 = Calendar.getInstance();
c1.setTime(d1);
Calendar c2 = Calendar.getInstance();
c2.setTime(d2);
if (c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR)
&& c1.get(Calendar.MONTH) == c2.get(Calendar.MONTH)
&& c1.get(Calendar.DAY_OF_MONTH) == c2.get(Calendar.DAY_OF_MONTH)) {
result = true;
}
return result;
}
/**
* 获取当前系统时间,24小时制
* @return 当前系统时间
*/
public static Time getSystemTime() {
Calendar c1 = Calendar.getInstance();
int hour = c1.get(Calendar.HOUR_OF_DAY);
int minute = c1.get(Calendar.MINUTE);
int second = c1.get(Calendar.SECOND);
Time systemTime = Time.valueOf(hour + ":" + minute + ":" + second);
return systemTime;
}
/**
* 是否为周末
* @param strDate
* @return true|false
*/
public static boolean isWeekend(String strDate) {
int weekDay = getWeekDay(strDate);
if (weekDay == 6 || weekDay == 7) {
return true;
} else {
return false;
}
}
/**
* 是否为周末
* @param strDate
* @return true|false
*/
public static boolean isWeekend(Date date) {
int weekDay = getWeekDay(format(date, "date"));
if (weekDay == 6 || weekDay == 7) {
return true;
} else {
return false;
}
}
/**
* 是否为法定节假日
* @param strDate
* @return true|false
*/
public static boolean isHoliday(String strDate) {
return false;
}
/**
* 日期排序
* @param dates 日期列表
* @param orderType 排序类型
* <br/>{@link #DATE_ORDER_ASC}<br/>
* {@link #DATE_ORDER_DESC}
* @return 排序结果
*/
public static List<? extends java.util.Date> orderDate(List<? extends java.util.Date> dates, int orderType) {
DateComparator comp = new DateComparator(orderType);
Collections.sort(dates, comp);
return dates;
}
/**
* 日期分组<br/>
* 能够对指定日期列表按照连续性分组<br/>
* 例如:[2010-01-15, 2010-01-16, 2010-01-17, 2010-01-20, 2010-01-21, 2010-01-25]<br/>
* 分组结果为:<br/>
* <ul>
* <li>[2010-01-15, 2010-01-16, 2010-01-17]</li>
* <li>[2010-01-20, 2010-01-21]</li>
* <li>[2010-01-25]</li>
* </ul>
* @param dates 日期对象
* @return 连续性分组结果
*/
public static List<List<? extends java.util.Date>> groupDates(List<? extends java.util.Date> dates) {
List<List<? extends java.util.Date>> result = new ArrayList<List<? extends java.util.Date>>();
// 按照升序排序
orderDate(dates, DateUtil.DATE_ORDER_ASC);
// 临时结果
List<Date> tempDates = null;
// 上一组最后一个日期
Date lastDate = null;
// 当前读取日期
Date cdate = null;
for (int i = 0; i < dates.size(); i++) {
cdate = dates.get(i);
// 第一次增加
if (tempDates == null) {
tempDates = new ArrayList<Date>();
tempDates.add(cdate);
result.add(tempDates);
} else {
/**
* 差距为1是继续在原有的列表中添加,大于1就是用新的列表
*/
lastDate = tempDates.get(tempDates.size() - 1);
int days = getBetweenDays(lastDate, cdate);
if (days == 1) {
tempDates.add(cdate);
} else {
tempDates = new ArrayList<Date>();
tempDates.add(cdate);
result.add(tempDates);
}
}
}
return result;
}
public static List<java.sql.Date> getBetweenDates(java.sql.Date fromDate, java.sql.Date toDate) {
List<java.sql.Date> result = new ArrayList<java.sql.Date>();
// 如果开始日期大于结束日期交换
if (toDate.getTime() < fromDate.getTime()) {
java.sql.Date tempDate = fromDate;
fromDate = toDate;
toDate = tempDate;
}
Calendar ca = Calendar.getInstance();
while ( fromDate.getTime() <= toDate.getTime() ) {
ca.setTime(fromDate);
java.sql.Date tempDate = new java.sql.Date(ca.getTime().getTime());
result.add(tempDate);
ca.add(Calendar.DATE, 1);
fromDate = new java.sql.Date(ca.getTime().getTime());
}
return result;
}
public static List<java.sql.Date> getAllDate(List<java.sql.Date[]> dateList) {
List<java.sql.Date> result = new ArrayList<java.sql.Date>();
for (Object[] objs : dateList) {
if (objs[0] == null || objs[1] == null) {
continue;
}
java.sql.Date date1 = (java.sql.Date) objs[0];
java.sql.Date date2 = (java.sql.Date) objs[1];
List<java.sql.Date> betweenDates = getBetweenDates(date1, date2);
for (java.sql.Date date : betweenDates) {
if (!result.contains(date)) {
result.add(date);
}
}
}
return result;
}
/**
* 将出生日期与当前日期相减,获得年龄
* @param birthdayDate
* @return
*/
public static int getAge(Date birthdayDate) {
String formatCurrent = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
int firstCu = formatCurrent.indexOf("-");
int lastCu = formatCurrent.lastIndexOf("-");
String currentYearStr = formatCurrent.substring(0, firstCu);
String currentMonthStr = formatCurrent.substring(firstCu + 1, lastCu);
String currentDayStr = formatCurrent.substring(lastCu + 1);
int currentYear = Integer.valueOf(currentYearStr);
int currentMonth = Integer.valueOf(currentMonthStr);
int currentDay = Integer.valueOf(currentDayStr);
String formatBirthday = new SimpleDateFormat("yyyy-MM-dd").format(birthdayDate);
int first = formatBirthday.indexOf("-");
int last = formatBirthday.lastIndexOf("-");
String birthYearStr = formatBirthday.substring(0, first);
String birthMonthStr = formatBirthday.substring(first + 1, last);
String birthDayStr = formatBirthday.substring(last + 1);
int birthYear = Integer.valueOf(birthYearStr);
int birthMonth = Integer.valueOf(birthMonthStr);
int birthDay = Integer.valueOf(birthDayStr);
if (currentMonth > birthMonth) {
return currentYear-birthYear;
} else if (currentMonth == birthMonth) {
if (currentDay >= birthDay) {
return currentYear-birthYear;
} else {
return currentYear-birthYear - 1;
}
} else {
return currentYear-birthYear - 1;
}
}
/**
* 获取年月,例如 201009
* @param dateObj
* @return
*/
public static String getYearMonth(Date dateObj) {
if (dateObj == null) {
return "";
}
Calendar ca = Calendar.getInstance();
ca.setTime(dateObj);
int month = ca.get(Calendar.MONTH) + 1;
String strMonth = month < 10 ? ("0" + month) : String.valueOf(month);
String yearMonth = ca.get(Calendar.YEAR) + strMonth;
return yearMonth;
}
/**
* 根据指定年月计算上月年月标示<br/>
* @param yearMonth
* @return 201010返回201009,201001返回200912
*/
public static String getPreYearMonth(String yearMonth) {
if (yearMonth.length() == 6) {
int year = Integer.valueOf(yearMonth.substring(0, 4));
int month = Integer.valueOf(yearMonth.substring(4));
if (month != 1) {
month -= 1;
} else {
year -= 1;
month = 12;
}
return year + (month < 10 ? "0" + month : String.valueOf(month));
}
return "";
}
/**
* 获取当前年份
*/
public static Integer getCurrentYear() {
Calendar ca = Calendar.getInstance();
return ca.get(Calendar.YEAR);
}
/**
* 获取当前月份
*/
public static Integer getCurrentMonth() {
Calendar ca = Calendar.getInstance();
return ca.get(Calendar.MONTH) + 1;
}
public static void main(String[] args) {
String preYearMonth = getPreYearMonth("201001");
System.out.println(preYearMonth);
}
}
/**
* <p><b>Title:</b>日期大小比较</p>
* <p><b>Description:</b>实现比较接口,按照排序类型[升序,降序]排列日期集合</p>
*
* @author 闫洪磊
*/
class DateComparator implements Comparator<Date> {
int orderType;
public DateComparator(int orderType) {
this.orderType = orderType;
}
public int compare(Date d1, Date d2) {
if (d1.getTime() > d2.getTime()) {
if (orderType == DateUtil.DATE_ORDER_ASC) {
return 1;
} else {
return -1;
}
} else {
if (d1.getTime() == d2.getTime()) {
return 0;
} else {
if (orderType == DateUtil.DATE_ORDER_DESC) {
return 1;
} else {
return -1;
}
}
}
}
}
Hide details
Change log
r13 by yanhonglei on Oct 15, 2010 Diff
1、从其他项目复制util包的各种工具类
2、添加地区信息的实体、DAO、Service和测试类
Go to:
Project members, sign in to write a code review
Older revisions
All revisions of this file
File info
Size: 19695 bytes, 687 lines
View raw file
声明:
本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:
https://www.wpsshop.cn/w/weixin_40725706/article/detail/260537
推荐阅读
article
281.【
华为
OD机试真题】
贪吃
的
猴子
(滑动窗口和
动态
规划—
Java
&
Python
&
C++
&
JS
实现...
【
华为
OD机试真题】
贪吃
的
猴子
(滑动窗口和
动态
规划—
Java
&
Python
&
C++
&
JS
实现)一只
贪吃
的
猴子
,来到一个果...
赞
踩
article
微信
小
程序
java
springboot
50
.
乡村
研学
旅行平台
设计
与实现(完整源码+
数据库
文件+...
结合先进的互联网技术,开发符合需求的软件,让数据内容管理不管是从录入的及时性,查看的及时性还是汇总分析的及时性,都能让正...
赞
踩
article
2024华为OD机试真题【区间交叠/贪心
算法
】【
Python
Java
C++】
_
selected
_
...
然后遍历排序后的线段,每遍历到一个线段,将其作为开始的线段,再找出后面的线段中左端点小于等于当前线段的右端点的线段们,找...
赞
踩
article
Java
+
springboot
+
Thymeleaf
前后端分离项目:
在线
订餐点餐外卖
系统
答辩
PPT
参考...
Java
+
springboot
+
Thymeleaf
前后端分离项目:
在线
订餐点餐外卖
系统
答辩
PPT
参考毕业设计毕设,黄菊华...
赞
踩
article
解决问题:
java
.
net
.
ConnectException
:
Connection
refuse...
解决方法是等待 NameNode 自动退出安全模式,或者手动将其退出安全模式。根据错误信息,可以看出是因为 HDFS 的...
赞
踩
article
java
: 无法访问org.
mybatis
.
spring
.
annotation
.MapperScan...
解决该问题,之前使用的Mybatis-
spring
依赖的版本3.0.1太高,将版本改为2.2.2,使用maven重新re...
赞
踩
article
Mybatis
selectKey
采坑笔记_
"
"j...
1.现象描述观察某张表的数据时,发现设置了自增属性的AutoId,在插入数据后并不是自增的,而是数值跳跃着增加的。2.问...
赞
踩
article
Java
MySQL
使用
MyBatis
插入
(
insert
)数据获取自动生成
主键
的方法及示例代码_my...
本文主要介绍
Java
中,使用
MyBatis
进行数据库数据
插入
,获取自动生成的
主键
(自增
主键
)的三种配置方法,及相关示例代...
赞
踩
article
小区
物业管理
系统
|基于
SpringBoot
+
Mysql
+
Java
+
Tomcat
的
小区
物业管理
系统
设...
随着科学技术的飞速发展,各行各业都在努力与现代先进技术接轨,通过科技手段提高自身的优势;对于
小区
物业管理
系统
当然也不能排...
赞
踩
article
myb
a
tis
之
selectKey
标签_
保存数据后,获取得到自增长的主键id,用作其他业务处理可以使用
myb
a
tis
为我们提供的
selectKey
标签
[详细]
-->
赞
踩
article
Spring
容器
启动
流程
源码解读--
java
-
config
技术...
Spring
Framework 是 Java 语言中影响最为深远的框架之一,其中的 IOC 和 AOP 两个经典思想更...
赞
踩
article
[独有源码]
java
-jsp
高校
功能
教室
预约
系统
的
设计
与实现
um4vl
规划与实现适合自己的毕业
设计
的...
选题背景:随着
高校
教育的不断发展和创新,传统的课堂教学已经无法满足学生的需求。为了提供更加灵活多样的教学环境,许多
高校
开...
赞
踩
article
基于uniapp共享
自习室
管理系统
微信
小
程序
springboot
/nodejs/php+vue+j...
首页、个人中心、用户管理、座位管理、
自习室
管理、
自习室
预约管理、
自习室
取消管理、计费提示管理、商品分类管理、热卖商品管理...
赞
踩
article
websocket
java
开源
库
,
C++
WebSocket
开源
库
| 求索阁...
WebSocket
是 HTML5 的一个引入注目的特性,它通常用于 Web 端,为构建实时的 Web 应用提供方便。W...
赞
踩
article
Java
Web
—
—
JS中的
BOM
...
Web
API
—
—
BOM
相关知识点
Java
Web
—
—
JS中的
BOM
1.
Web
API概述 ...
赞
踩
article
Java
springboot
使用
webscoket
包含
心跳
机制
_
java
springboot
下载...
【代码】
Java
springboot
使用
webscoket
包含
心跳
机制。
_
java
springboot
下载文件
心跳
j...
赞
踩
article
java
junit
预期
值_关于
java
:
JUnit
测试
– 分析
预期
的
异常
...
本问题已经有最佳答案,请猛点这里访问。在
JUnit
中,我目前正在使用注释来期待我的
测试
中的
异常
。有没有办法分析这个例外?...
赞
踩
article
Elasticsearch
:从
Java
High
Level
Rest
Client
切换到新的 ...
我经常在中看到与
Java
API 客户端使用相关的问题。为此,我在 2019 年启动了一个,以提供一些实际有效的代码示...
赞
踩
article
Android
学习之《第
一
行
代码
》第二版 笔记(二)
Activity
探究
活动
(
一
)_5.修改“ac...
一
、
在
活动
中使用Toast和Menu1. 效果图2.
代码
A. 简介Toast: 是
Android
系统提供的
一
种良好的提...
赞
踩
article
华为OD机试 -
会议室
占用
时间
(
Java
& JS &
Python
& C &
C++
)_
会议室
...
华为OD机试 -
会议室
占用
时间
(
Java
& JS &
Python
& C &
C++
),实现:区间合并_
会议室
占用
...
赞
踩
相关标签
华为od
动态规划
java
贪吃的猴子
python
c++
spring boot
小程序
uniapp
微信小程序
maven
mysql
贪心算法
算法
华为
面试
在线订餐点餐外卖系统
hadoop
大数据
mybatis
spring
数据库