04 2021 档案
摘要:SELECT phone, count(*) AS countFROM test_userGROUP BY phoneHAVING count > 1;
阅读全文
摘要:package com.etonkids.explora.utils;import com.etonkids.explora.entity.Campus;import com.etonkids.explora.mapper.CampusMapper;import org.springframewor
阅读全文
摘要:普通集合 Copy List<String> list = Lists.newArrayList(); Set<String> set = Sets.newHashSet(); Map<String, String> map = Maps.newHashMap(); Set 取交集、并集、差集 Co
阅读全文
摘要:public static void main(String[] args) { // 循环遍历List的4中方法 List<String> strList = new ArrayList<>(); strList.add("aaa"); strList.add("bbb"); strList.ad
阅读全文
摘要:Map<Integer, String> map = new HashMap<>(); //添加数据 map.put(1,"张三"); map.put(2,"李四"); map.put(3,"王五"); map.put(4,"赵六"); 1,使用迭代器 EntrySet 的方式遍历 //遍历 Ite
阅读全文
摘要:文件位置resource/excleTemplate/test.xlsx,并且测试了四种读取方式分别的windows开发环境下(IDE中)读取和生产环境(linux下jar包运行读取)。 第一种:开发环境(IDE中)和生产环境(linux部署成jar包)都可以读取到 ClassPathResourc
阅读全文
摘要:1、查看进程 netstat -ntlp 2、杀掉进程kill -9 xxxxx 3、启动项目 nohup java -jar demo.jar --server.port=8080 --spring.profiles.active=test & tail -f nohup.out nohup ja
阅读全文
摘要:Ctrl+Shift + Enter,语句完成“!”,否定完成,输入表达式时按 “!”键Ctrl+E,最近的文件Ctrl+Shift+E,最近更改的文件Shift+Click,可以关闭文件Ctrl+[ OR ],可以跑到大括号的开头与结尾Ctrl+F12,可以显示当前文件的结构Ctrl+F7,可以查
阅读全文
摘要:第一步:cd进入你放项目文件的地址 ,我是放在了这里: E:\regtest 第二步:输入git init 第三步:输入git add . 这个是将项目上所有的文件添加到仓库中的意思,如果想添加某个特定的文件,只需把.换成这个特定的文件名即可。 我是使用了".",把整个文件夹下信息都提交了。 第四步
阅读全文
摘要:/** * 当前时间的前1分钟的时间 * 结果:newDate = 2020-12-24 13:45:40 Before=2020-12-24 13:44:40 * * @param now * @return */public static String getOneMinutebeforeTim
阅读全文
摘要:本篇文章讲解是是MySQL的函数方法,涵盖所有的MySQL常见的方法。下面是本篇文章的目录结构,可以根据自己需求点击右方目录查找: 一、数字函数二、字符串函数三、日期函数四、MySQL高级函数(一)数字函数1、ABS(x) 返回x的绝对值 SELECT ABS(-1); 返回1122、AVG(exp
阅读全文
摘要:package com.demo.utils;import java.security.MessageDigest;/** * MD5加密类 * @author zys */public class MD5Utils { public final static String MD5(String s
阅读全文
摘要:/** * 根据生日计算年龄 * 如:2011-02-13 换算之后是 8岁1个月24天 * @param birth * @return String */ public static String getAge(Date birthDay){ Calendar birthday = Calend
阅读全文
摘要:package com.demo.common.beans;import lombok.Data;import java.io.Serializable;/** * @author zys */@Datapublic class ResultJson<T> implements Serializab
阅读全文

浙公网安备 33010602011771号