随笔分类 -  java

摘要:最近使用MyBatis遇到一个问题,在for循环中调用获取序列的方法,返回值总是一个。 <select id="queryUcfUserBatchImportId" resultType="java.lang.String"> SELECT UCF_USER_BATCH_IMPORT_SEQ.NEX 阅读全文
posted @ 2021-07-17 12:41 rearboal 阅读(280) 评论(0) 推荐(1)
摘要:预计界面: 实际结果:汉字不见了 解决方法:全选所有的ireport文件的内容: 阅读全文
posted @ 2021-05-24 20:28 rearboal 阅读(95) 评论(0) 推荐(0)
摘要:转载于:https://www.cnblogs.com/chushujin/p/11371450.html Java对返回参数进行处理(JSONObject,getJSONArray等) 一、根据返回参数格式获取其中的值 1.得到ResponseEntity<String> responseEnti 阅读全文
posted @ 2021-05-18 20:05 rearboal 阅读(1218) 评论(0) 推荐(0)
摘要:转载:http://cache.baiducontent.com/c?m=v14RCBGrkK42yz2FeanXqBoajYiAJ_4DRfR4Nf4hLHBWypeB9bh7NcTa1kmpVXg4BJ3p8xYUEVVoCpe4uaQyv7Bg_Ve0PgPHceNv6yNBw8uuwZ0LI 阅读全文
posted @ 2021-05-14 16:07 rearboal 阅读(2105) 评论(0) 推荐(0)
摘要:package com.shine.eiuop.utils.Utils2; import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundExce 阅读全文
posted @ 2021-05-08 13:34 rearboal 阅读(309) 评论(0) 推荐(0)
摘要:问题:java中将一个list的内容复制给另一个list之后,去新的list进行操作的时候,原来的list也会发生变化 this.para.putAll(po.getPara()); // fields是para下面的一个Map参数,此处本意是返回给客户端的fields元素中不包含aaa和bbb两个 阅读全文
posted @ 2021-01-13 15:47 rearboal 阅读(2553) 评论(1) 推荐(1)
摘要:String[] oldBrokerDeptIds =oldMap.get("old_broker_dept_ids")==null ? new String[0]:oldMap.get("old_broker_dept_ids").toString().split(","); 阅读全文
posted @ 2020-12-28 16:55 rearboal 阅读(144) 评论(0) 推荐(0)
摘要:转自https://blog.csdn.net/Tracycater/article/details/77592472?locationNum=2&fps=1 在项目中对List进行操作时报错java.lang.UnsupportedOperationException,后来发现操作的List是由数 阅读全文
posted @ 2020-11-23 16:56 rearboal 阅读(175) 评论(0) 推荐(0)
摘要:Java的List在删除元素时,一般会用list.remove(o)/remove(i)方法。在使用时,容易触碰陷阱,得到意想不到的结果。总结以往经验,记录下来与大家分享。 首先初始化List,代码如下: package com.cicc.am.test; import java.util.Arra 阅读全文
posted @ 2020-10-28 21:03 rearboal 阅读(3016) 评论(0) 推荐(0)
摘要:原链接:https://blog.csdn.net/qq_37164847/article/details/82460801 原始数组: String [] data = {"101//aaa","102//bbb","101//ccc","103//aaa","102//vvvv"}; 把相同开头 阅读全文
posted @ 2020-09-13 21:00 rearboal 阅读(892) 评论(0) 推荐(0)
摘要:将map集合存数据与取出数据全部放在一个类MapTest中,方便阅读与查看 随便创建一个包,在包中新建一个class文件,(也可以不建包,直接新建一个class文件) 新建class文件MapTest.java,代码如下: import java.util.HashMap;import java.u 阅读全文
posted @ 2020-09-13 19:44 rearboal 阅读(7212) 评论(0) 推荐(0)
摘要:原文连接:https://www.cnblogs.com/zhangjianbing/p/7538178.html 1.由数字、26个英文字母或者下划线组成的字符串: ^[0-9a-zA-Z_]{1,}$2.非负整数(正整数 + 0 ): ^/d+$3. 正整数: ^[0-9]*[1-9][0-9] 阅读全文
posted @ 2020-08-18 16:40 rearboal 阅读(2117) 评论(0) 推荐(0)
摘要:package com.shine.eiuop.utils; import org.apache.poi.ss.usermodel.*; import org.apache.poi.hssf.usermodel.HSSFCell;import org.apache.poi.ss.usermodel. 阅读全文
posted @ 2020-07-30 15:40 rearboal 阅读(1071) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/cailijuan/p/10687995.htmlpublic static void test4(){ Map<String, Object> map = new HashMap<>(); map.put("key1",1); map.pu 阅读全文
posted @ 2020-07-30 15:38 rearboal 阅读(1157) 评论(0) 推荐(0)
摘要:原文链接: https://www.cnblogs.com/bretgui/p/10156141.html 1.导入依赖JAR包 <!-- jxl 操作excel --> <dependency> <groupId>org.jxls</groupId> <artifactId>jxls-jexcel 阅读全文
posted @ 2020-07-26 10:25 rearboal 阅读(784) 评论(0) 推荐(0)
摘要:package com.shine.eiuop.utils; import java.util.regex.MatchResult;import java.util.regex.Matcher;import java.util.regex.Pattern; public class ZWUtils 阅读全文
posted @ 2020-07-23 18:12 rearboal 阅读(113) 评论(0) 推荐(0)
摘要:package com.shine.eiuop.utils.Utils2; import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.File;import java.io.FileInputStream;i 阅读全文
posted @ 2020-07-23 11:31 rearboal 阅读(206) 评论(0) 推荐(0)
摘要:1:转义和不需要转义 例如: mane = (line.substring(line.indexOf("\"")+1,line.lastIndexOf("."))).trim(); mane = (line.split("\\.")[0].substring(line.split("\\.")[0] 阅读全文
posted @ 2020-07-23 03:42 rearboal 阅读(140) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/zhaoyan001/p/11737961.html 1. 循环list中的所有元素然后删除重复 public static List removeDuplicate(List list) { for ( int i = 0 ; i < li 阅读全文
posted @ 2020-07-23 03:05 rearboal 阅读(7390) 评论(0) 推荐(1)
摘要:package com.shine.eiuop.utils; import java.util.ArrayList;import java.util.regex.Matcher;import java.util.regex.Pattern; public class test { public st 阅读全文
posted @ 2020-07-23 01:57 rearboal 阅读(3134) 评论(0) 推荐(0)