上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: /** * * @author puxiaozhe * @description 过滤掉map集合中key或value为空的值 * @date 2020-08-08 **/public class MapRemoveNullUtil { /** * 移除map中空key或者value空值 * * @ 阅读全文
posted @ 2020-08-09 12:12 猿码哥 阅读(1518) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { // 循环遍历Map的4中方法 Map<Integer, Integer> map = new HashMap<Integer, Integer>(); map.put(1, 2); // 1. entrySet遍历, 阅读全文
posted @ 2020-08-09 12:09 猿码哥 阅读(186) 评论(0) 推荐(0) 编辑
摘要: public class SignUtils { /** * 获取key的方法 * @param inMap * @param keys * @return */ private static StringBuffer getKeys(Map<String, String> inMap,List<S 阅读全文
posted @ 2020-08-09 11:04 猿码哥 阅读(875) 评论(0) 推荐(0) 编辑
摘要: public static String formatDate(String inDate) { SimpleDateFormat inTime = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); SimpleDateFormat outTime = new 阅读全文
posted @ 2020-07-26 16:20 猿码哥 阅读(156) 评论(0) 推荐(0) 编辑
摘要: /** * Date 转为LocalDateTime * * @param date * @return */public static LocalDateTime convertDateToLDT(Date date) { return LocalDateTime.ofInstant(date.t 阅读全文
posted @ 2020-07-26 16:19 猿码哥 阅读(330) 评论(0) 推荐(0) 编辑
摘要: swagger 报错: TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body. 有@ResponseBody才会在接口中获取swagger列表 是由于方法中申明的 阅读全文
posted @ 2020-07-18 10:58 猿码哥 阅读(7189) 评论(1) 推荐(0) 编辑
摘要: import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException;import com.baomidou.mybatisplus.core.toolkit.StringPool;import com.baomidou.mybat 阅读全文
posted @ 2020-07-12 15:33 猿码哥 阅读(266) 评论(0) 推荐(0) 编辑
摘要: Hutool工具包导出Excel文件异常 You need to add dependency of poi-ooxml to your project 出现如下异常信息 cn.hutool.core.exceptions.DependencyException: You need to add d 阅读全文
posted @ 2020-07-02 21:03 猿码哥 阅读(7160) 评论(0) 推荐(0) 编辑
摘要: public static void main(String arg[]) { (一)获取24小时制中的时刻) Date today = new Date(); // 格式化时间 SimpleDateFormat sf = new SimpleDateFormat("HH"); String tim 阅读全文
posted @ 2020-03-14 15:42 猿码哥 阅读(8089) 评论(0) 推荐(0) 编辑
摘要: @PostMapping("/allAddressInfo")@ApiOperation(consumes = MediaType.APPLICATION_JSON_VALUE, value = "查询城市区域信息")public R getProvinceCityInfo() { List<Pro 阅读全文
posted @ 2020-01-09 16:14 猿码哥 阅读(747) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页