【MapSheep】
[好记性不如烂笔头]
上一页 1 2 3 4 5 6 7 8 9 ··· 23 下一页
摘要: 背景 Java连接PostGres库, 运行SparkSQL脚本报错, 原因是: SQL脚本中不能存在null关键字. 解决方案 将null替换为**''**即可. 阅读全文
posted @ 2023-04-10 09:37 (Play) 阅读(104) 评论(0) 推荐(0) 编辑
摘要: FastJSON没有提供直接判断一个JSON字符串是JSONObject或JSONArray的方法,因此,对于一个未知的JSON串,我们需要自行判断。 方法一 实例代码 String jsonStr = "[{\"aaa\" : \"111\"}]"; Object object = JSON.pa 阅读全文
posted @ 2022-07-06 11:11 (Play) 阅读(3221) 评论(0) 推荐(0) 编辑
摘要: package com.sjh.test.java8; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; public class JoniningDemo1 { public st 阅读全文
posted @ 2022-06-27 17:09 (Play) 阅读(695) 评论(0) 推荐(0) 编辑
摘要: Thread t = new Thread(() -> { // TODO 执行你的逻辑 }); t.start(); returnTable.append("写入成功!"); 阅读全文
posted @ 2022-06-27 15:53 (Play) 阅读(25) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { Date now = new Date(); Date endTime = new Date(now.getTime() + 1000 * 60 * 60 * 24); DateFormat dateFormat = 阅读全文
posted @ 2022-06-27 15:44 (Play) 阅读(925) 评论(0) 推荐(1) 编辑
摘要: 使用fastjson的Json.toJsonString方法时出现多余反斜杠json {"data":"{"models":[{"name":"test","id":1}],"table":"ws"}","option":"add"} 使用 StringEscapeUtils.unescapeJav 阅读全文
posted @ 2022-06-07 16:17 (Play) 阅读(1939) 评论(0) 推荐(0) 编辑
摘要: 查看Mysql 数据库"ori_data"下所有表的表名、表注释及其数据量 SELECT TABLE_NAME 表名, TABLE_COMMENT 表注释, TABLE_ROWS 数据量 FROM information_schema.tables WHERE TABLE_SCHEMA = 'ori 阅读全文
posted @ 2022-06-07 16:09 (Play) 阅读(405) 评论(0) 推荐(0) 编辑
摘要: @TableField(exist=false)注解加在bean属性上,表示当前属性不是数据库的字段,但在项目中必须使用。 /** * @fieldName: userType * @fieldType: String * @Description: 1.学生 2.老师 */ @TableField 阅读全文
posted @ 2022-05-27 10:45 (Play) 阅读(1739) 评论(0) 推荐(0) 编辑
摘要: 1.小鹅通视频下载 M3U8下载器:http://www.pc6.com/softview/SoftView_372291.html 实战演练 阅读全文
posted @ 2022-03-05 17:31 (Play) 阅读(1548) 评论(0) 推荐(0) 编辑
摘要: 简介 Groovy语言同样能生成字节码文件,通过jvm运行,这门动态语言,可以理解为Java语言的兄弟,只不过这个兄弟让你的代码更简洁。 引入pom文件中引入groovy包,支持对groovy文件的编译。 <dependency> <groupId>org.codehaus.groovy</grou 阅读全文
posted @ 2022-01-26 13:47 (Play) 阅读(249) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 23 下一页