上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 70 下一页
摘要: Result.java public class Result<T> { private Integer code; private String msg; private String message; private T data; public Integer getCode() { retu 阅读全文
posted @ 2020-10-10 13:18 yvioo 阅读(4383) 评论(0) 推荐(1)
摘要: 查看当前用户名和邮箱 git config user.name git config user.email 修改 git config --global user.name "新用户名" git config --global user.email "新邮箱" git config --global 阅读全文
posted @ 2020-09-29 15:21 yvioo 阅读(5010) 评论(0) 推荐(1)
摘要: 在Spring Boot的配置文件application.properites中添加配置项,可以关闭默认的Favicon spring.mvc.favicon.enabled=false 阅读全文
posted @ 2020-09-28 18:02 yvioo 阅读(740) 评论(0) 推荐(0)
摘要: LocalDateTime 转 Date LocalDateTime localDateTime=LocalDateTime.now() Date date = Date.from(localDateTime.atZone( ZoneId.systemDefault()).toInstant()); 阅读全文
posted @ 2020-09-28 17:38 yvioo 阅读(42195) 评论(0) 推荐(1)
摘要: 环境要求:使用jdk1.8 package com.date; import java.text.ParseException; import java.text.SimpleDateFormat; import java.time.LocalDateTime; import java.time.Z 阅读全文
posted @ 2020-09-28 17:28 yvioo 阅读(9241) 评论(1) 推荐(0)
摘要: /** * 判断请求url是否非法 * @param url * @return */ public static boolean isValidRequestUri(String url) { if (StringUtils.isNotEmpty(url)) { if (hasSpecialCha 阅读全文
posted @ 2020-09-27 18:29 yvioo 阅读(2994) 评论(1) 推荐(0)
摘要: /** * 私有IP: * A类 10.0.0.0-10.255.255.255 * B类 172.16.0.0-172.31.255.255 * C类 192.168.0.0-192.168.255.255 * * 127这个网段是环回地址 * localhost */ static List<P 阅读全文
posted @ 2020-09-27 17:15 yvioo 阅读(4600) 评论(1) 推荐(1)
摘要: /** * 获得当前访问的URL路径 * @param request * @return */ public static String getLocation(HttpServletRequest request) { UrlPathHelper helper = new UrlPathHelp 阅读全文
posted @ 2020-09-27 17:04 yvioo 阅读(7243) 评论(0) 推荐(0)
摘要: /** * 获取本机的Mac地址 * @return */ public String getMac() { InetAddress ia; byte[] mac = null; try { // 获取本地IP对象 ia = InetAddress.getLocalHost(); // 获得网络接口 阅读全文
posted @ 2020-09-27 17:00 yvioo 阅读(2230) 评论(0) 推荐(0)
摘要: private static final String[] ADDR_HEADER = { "X-Forwarded-For", "Proxy-Client-IP", "WL-Proxy-Client-IP", "X-Real-IP" }; private static final String N 阅读全文
posted @ 2020-09-27 16:59 yvioo 阅读(5040) 评论(0) 推荐(0)
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 70 下一页