2023年2月3日

摘要: SELECT DATE_FORMAT(date,'%Y-%m-%d') AS date,IFNULL(data.hour,0) AS hour, IFNULL(data.num, 0) AS countFROM ( SELECT @days := DATE_ADD(@days, INTERVAL - 阅读全文
posted @ 2023-02-03 13:25 小泥爪子 阅读(251) 评论(0) 推荐(0) 编辑

2022年7月13日

摘要: list去掉某一元素,其余元素相同去重List<EcologyRelation> collect = value.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Com 阅读全文
posted @ 2022-07-13 10:37 小泥爪子 阅读(67) 评论(0) 推荐(0) 编辑

2022年3月9日

摘要: List<String> rList= new ArrayList<String>(Arrays.asList(item.get("reqList").split(",")));rList.removeAll(reqList);String rs="";for (String r : rList){ 阅读全文
posted @ 2022-03-09 14:57 小泥爪子 阅读(407) 评论(0) 推荐(0) 编辑

2021年1月25日

摘要: ORA-00001: 违反唯一约束条件 (xxxx) xxxx为你的报错的约束值 不说别的,直接照着下面写就完事 _seq千万别忘了 解决方法: 第一步:查询违反约束的序列select a.constraint_name,a.constraint_type,b.column_name,b.table 阅读全文
posted @ 2021-01-25 15:32 小泥爪子 阅读(5926) 评论(0) 推荐(0) 编辑

2021年1月15日

摘要: /** * 以行为单位读取文件,常用于读面向行的格式化文件 * @param fileName 文件名 */ public static void readFileByLines(String fileName){ File file = new File(fileName); BufferedRe 阅读全文
posted @ 2021-01-15 15:02 小泥爪子 阅读(42) 评论(0) 推荐(0) 编辑
摘要: Resource接口Spring的Resource接口代表底层外部资源,提供了对底层外部资源的一致性访问接口。Java代码 收藏代码public interface InputStreamSource {InputStream getInputStream() throws IOException; 阅读全文
posted @ 2021-01-15 10:41 小泥爪子 阅读(217) 评论(0) 推荐(0) 编辑

2021年1月14日

摘要: public static void readWantedText(String url, String wanted) { try { FileReader fr = new FileReader(url); BufferedReader br = new BufferedReader(fr); 阅读全文
posted @ 2021-01-14 18:11 小泥爪子 阅读(622) 评论(0) 推荐(0) 编辑
摘要: import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.HashSet; import java.util.Set; public class Rea 阅读全文
posted @ 2021-01-14 18:01 小泥爪子 阅读(506) 评论(0) 推荐(0) 编辑
摘要: //固定写法,获取配置列表public void getPropertiesList() throws Exception{ ResourcePatternResolver loader = new PathMatchingResourcePatternResolver(); Resource[] 阅读全文
posted @ 2021-01-14 16:26 小泥爪子 阅读(324) 评论(0) 推荐(0) 编辑

2020年7月13日

摘要: 有表user id 主键 name 学生名字 age 年龄 create_time 创建时间 id name age create_time 1 张三 23 2020-07-12 14:26:36 2 李四 21 2020-07-13 14:26:36 3 王五 22 2020-07-15 14:2 阅读全文
posted @ 2020-07-13 18:11 小泥爪子 阅读(191) 评论(0) 推荐(0) 编辑

导航