随笔分类 -  Java

摘要:直接上代码 public class TestRegex { public static void main(String[] args){ String a = "^(?!^$)([a-zA-Z0-9]{6,})$"; Pattern pattern2 = Pattern.compile(a); 阅读全文
posted @ 2020-09-09 15:48 無玑小姐 阅读(1922) 评论(0) 推荐(0)
摘要:先上代码 package com.example.test; import com.lowagie.text.*; import com.lowagie.text.Font; import com.lowagie.text.Rectangle; import com.lowagie.text.rtf 阅读全文
posted @ 2020-08-26 14:24 無玑小姐 阅读(1157) 评论(0) 推荐(1)
摘要:参考:https://www.cnblogs.com/wyang0126/p/5039931.html 先上代码 package com.example.test; import com.lowagie.text.*; import com.lowagie.text.Font; import com 阅读全文
posted @ 2020-06-28 15:16 無玑小姐 阅读(1180) 评论(0) 推荐(1)
摘要:1, 创建父项目 1.1,file - new - project 1.2,选择maven,Create from archetype(有的说不选,有的没说,不过我建父项目的时候没有勾选) 1.3,根据自己实际情况输入相应内容 1.4,根据实际情况放在合适的目录 1.5, finish完成,项目目录 阅读全文
posted @ 2019-12-10 15:56 無玑小姐 阅读(1417) 评论(0) 推荐(0)
摘要:来自:https://www.cnblogs.com/shinubi/p/6723003.html 阅读全文
posted @ 2019-12-04 11:28 無玑小姐 阅读(4683) 评论(0) 推荐(0)
摘要:1,查询方法 2,getJdbcData()方法在https://www.cnblogs.com/cailijuan/p/9964259.html 阅读全文
posted @ 2019-11-13 10:38 無玑小姐 阅读(2393) 评论(0) 推荐(0)
摘要:去除list集合中不符合条件的数据 阅读全文
posted @ 2019-11-11 11:21 無玑小姐 阅读(1769) 评论(0) 推荐(0)
摘要:替换几位就用几个*号 一、姓名 1, 脱敏规则: 只显示第一个汉字,比如李某某置换为李**, 李某置换为李* 二、手机号 1, 脱敏规则: 保留前三后四, 比如15638296218置换为156****6218 三、身份证号 1, 脱敏规则: 保留前六后三, 适用于15位和18位身份证号 方式一: 阅读全文
posted @ 2019-09-11 11:21 無玑小姐 阅读(33734) 评论(1) 推荐(5)
摘要:示例 List<String> titles = titleList.stream().map(e -> e.get(ConstantUtil.TITLE)).collect(Collectors.toList()); 优化:List<String> fieldList = mountTableVo 阅读全文
posted @ 2019-09-04 15:17 無玑小姐 阅读(7774) 评论(0) 推荐(0)
摘要:今天项目中用到了,特记录一下 一. List<Map> 如果 item.get(sortField) 有时间,有数字的时候直接toString(),数组结果的排序结果可能不正确 补充 二.List<entity> 阅读全文
posted @ 2019-08-26 15:20 無玑小姐 阅读(2549) 评论(0) 推荐(0)
摘要:项目原来是可以访问的,后来突然不能不访问了,系统ip也是能ping通的,后来就想是不是防火墙的问题,查看一下还真是 原因:Linux服务器上的防火墙开着,关闭即可 1、查看firewall服务状态 systemctl status firewalld 出现Active: active (runnin 阅读全文
posted @ 2019-08-23 11:01 無玑小姐 阅读(770) 评论(0) 推荐(0)
摘要:一, 打包react项目 1,在工作空间目录下create-react-app test-arrange 创建项目test-arrange 2,在新建的项目中写好请求与页面 3,打包, 在项目目录下 npm run build 打包完成之后, 在项目目录下出现build文件夹。 二, 下载安装Win 阅读全文
posted @ 2019-08-16 16:51 無玑小姐 阅读(1854) 评论(0) 推荐(0)
摘要:错误日志: java.lang.IllegalStateException: Optional int parameter 'resourceState' is present but cannot be translated into a null value due to being decla 阅读全文
posted @ 2019-08-07 17:12 無玑小姐 阅读(1132) 评论(0) 推荐(0)
摘要:来自:https://blog.csdn.net/qq_15238647/article/details/81539287 关于ajax请求spring后台出现 Required String parameter ‘id’ is not present异常, 如果前端传入的是json数据那么后端使用 阅读全文
posted @ 2019-05-29 10:26 無玑小姐 阅读(24945) 评论(0) 推荐(0)
摘要:代码如下 结果如下 阅读全文
posted @ 2019-04-11 14:16 無玑小姐 阅读(149) 评论(0) 推荐(0)
摘要:有两种方法 打印结果如下: 阅读全文
posted @ 2019-04-11 10:21 無玑小姐 阅读(20262) 评论(0) 推荐(0)
摘要:配置在application.yml文件中 pom里的配置 在<build>中 阅读全文
posted @ 2019-03-26 17:42 無玑小姐 阅读(274) 评论(0) 推荐(0)
摘要:此文章记录在spring boot项目中的使用 1,在项目的启动类中加注解@EnableScheduling,表示此项目可以进行定时 2,在要定时的类中 3,@Scheduled(cron = " ")表达式 1.Seconds Minutes Hours DayofMonth Month Dayo 阅读全文
posted @ 2019-03-26 17:30 無玑小姐 阅读(274) 评论(0) 推荐(0)
摘要:项目中需要用到操作properties文件中的数据,记录一下 阅读全文
posted @ 2019-03-26 17:20 無玑小姐 阅读(6364) 评论(0) 推荐(3)
摘要:转自:https://blog.csdn.net/song_litao/article/details/84751351 阅读全文
posted @ 2019-03-21 17:21 無玑小姐 阅读(1355) 评论(0) 推荐(0)