摘要: 推迟一周示例:Calendar curr = Calendar.getInstance();curr.set(Calendar.DAY_OF_MONTH,curr.get(Calendar.DAY_OF_MONTH)+7);Date date=curr.getTime();推迟一年示例:Calend 阅读全文
posted @ 2021-06-07 14:18 zysnba 阅读(140) 评论(0) 推荐(0)
摘要: 第一步导入jar implementation 'org.springframework.boot:spring-boot-starter-validation'第二步 package com.test.utils;import io.swagger.annotations.ApiModel;imp 阅读全文
posted @ 2021-06-03 14:16 zysnba 阅读(99) 评论(0) 推荐(0)
摘要: 第一步加仓资源MessageSource ,启动类中加上如下代码: public WebsiteApplication(MessageSource messageSource) { MsgUtil.inti(messageSource);}第二步配置拦截器信息 package com.test.co 阅读全文
posted @ 2021-06-03 14:08 zysnba 阅读(122) 评论(0) 推荐(0)
摘要: package com.example.demo111; import cn.hutool.extra.qrcode.QrCodeUtil;import cn.hutool.extra.qrcode.QrConfig;import com.google.zxing.qrcode.decoder.Er 阅读全文
posted @ 2021-05-12 09:13 zysnba 阅读(187) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?> <!--Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements. See the N 阅读全文
posted @ 2021-05-06 08:57 zysnba 阅读(104) 评论(0) 推荐(0)
摘要: SELECT phone, count(*) AS countFROM test_userGROUP BY phoneHAVING count > 1; 阅读全文
posted @ 2021-04-23 14:34 zysnba 阅读(95) 评论(0) 推荐(0)
摘要: package com.etonkids.explora.utils;import com.etonkids.explora.entity.Campus;import com.etonkids.explora.mapper.CampusMapper;import org.springframewor 阅读全文
posted @ 2021-04-15 17:25 zysnba 阅读(1100) 评论(0) 推荐(0)
摘要: 普通集合 Copy List<String> list = Lists.newArrayList(); Set<String> set = Sets.newHashSet(); Map<String, String> map = Maps.newHashMap(); Set 取交集、并集、差集 Co 阅读全文
posted @ 2021-04-15 16:38 zysnba 阅读(131) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { // 循环遍历List的4中方法 List<String> strList = new ArrayList<>(); strList.add("aaa"); strList.add("bbb"); strList.ad 阅读全文
posted @ 2021-04-15 16:07 zysnba 阅读(846) 评论(0) 推荐(0)
摘要: Map<Integer, String> map = new HashMap<>(); //添加数据 map.put(1,"张三"); map.put(2,"李四"); map.put(3,"王五"); map.put(4,"赵六"); 1,使用迭代器 EntrySet 的方式遍历 //遍历 Ite 阅读全文
posted @ 2021-04-15 16:05 zysnba 阅读(130) 评论(0) 推荐(0)