会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yvioo
“你从没有相信过谁吧,这就是你孤身一人的原因”
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
38
39
40
41
42
43
44
45
46
···
70
下一页
2021年1月14日
JAVA通过身份证号码获取出生日期、年龄、性别
摘要: JAVA验证身份证号码是否正确:https://www.cnblogs.com/pxblog/p/12038278.html /** * 通过身份证号码获取出生日期(birthday)、年龄(age)、性别(sex) * @param idCardNo 身份证号码 * @return 返回的出生日期
阅读全文
posted @ 2021-01-14 09:56 yvioo
阅读(6835)
评论(0)
推荐(0)
2021年1月11日
Caused by: redis.clients.jedis.exceptions.JedisDataException: READONLY You can't write against a read only slave.
摘要: Caused by: redis.clients.jedis.exceptions.JedisDataException: READONLY You can't write against a read only slave. at redis.clients.jedis.Protocol.proc
阅读全文
posted @ 2021-01-11 14:07 yvioo
阅读(2458)
评论(0)
推荐(0)
2020年12月31日
This request has been blocked; the content must be served over HTTPS.处理方案
摘要: 在页面head标签中加入 <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
阅读全文
posted @ 2020-12-31 09:47 yvioo
阅读(4508)
评论(0)
推荐(0)
2020年12月25日
JAVA直接连接Redis
摘要: 引入maven <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.9.0</version> </dependency> 代码 static String constr =
阅读全文
posted @ 2020-12-25 15:46 yvioo
阅读(429)
评论(0)
推荐(0)
2020年12月3日
layui(layer)的loading方法显示位置不居中
摘要: 要在layer.load之前使用layer.ready方法 layui.use('layer', function () { layer.ready(function(){ index = layer.load(1, { shade: [0.4,'#000'] }); }); });
阅读全文
posted @ 2020-12-03 10:34 yvioo
阅读(1349)
评论(0)
推荐(0)
2020年11月26日
JAVA发送POST请求携带JSON格式字符串参数
摘要: import org.apache.commons.lang.StringUtils; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.StatusLine;
阅读全文
posted @ 2020-11-26 14:55 yvioo
阅读(5483)
评论(0)
推荐(0)
Spring Boot整合Thymeleaf及Thymeleaf页面基本语法,遍历、拼接、判空、日期格式化、显示部分字符串
摘要: 引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> <version>2.1.7.RELEASE</version>
阅读全文
posted @ 2020-11-26 14:15 yvioo
阅读(830)
评论(1)
推荐(1)
2020年11月23日
JAVA字符串(String)拼接操作规则说明
摘要: 1.常量与常量的拼接结果在常量池,原理是编译期优化 public void test1() { String s1 = "a" + "b" + "c";//等同于"abc" String s2 = "abc"; //"abc"-定是放在字符串常量池中,将此地址赋给s2 /* *最终.java编译成.
阅读全文
posted @ 2020-11-23 21:53 yvioo
阅读(1025)
评论(0)
推荐(0)
JAVA使用反射获取对象的所有属性名
摘要: public static void main(String[] args) { Field[] fields=BaseSalary.class.getDeclaredFields(); for (int i = 0; i < fields.length; i++) { System.out.pri
阅读全文
posted @ 2020-11-23 17:35 yvioo
阅读(2904)
评论(0)
推荐(0)
JAVA驼峰转下划线
摘要: private static Pattern humpPattern = Pattern.compile("[A-Z]"); /** * 驼峰转下划线 * @param str * @return */ public static String humpToLine(String str) { Ma
阅读全文
posted @ 2020-11-23 17:33 yvioo
阅读(2771)
评论(2)
推荐(0)
上一页
1
···
38
39
40
41
42
43
44
45
46
···
70
下一页
公告