![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
有梦想的小弱鸡
这个作者很懒,什么都没留下…
展开
-
jfinal整合IJPay paypal支付
paypal 支付 退款原创 2022-12-15 10:13:44 · 823 阅读 · 0 评论 -
jfinal quartz 定时器 后台维护
业务场景,以下单为例,如果订单在24小时内未付款,则定时器执行,修改订单未失效。原创 2022-10-18 16:13:57 · 363 阅读 · 0 评论 -
时间转cron表达式
【代码】时间转cron表达式。原创 2022-10-18 15:37:41 · 1191 阅读 · 0 评论 -
java word转pdf 在linux转pdf乱码解决方法
word转pdfword转pdf,完美转换引入依赖 (maven仓库是没有的,需要在项目中引用)链接: 下载地址.然后在pom里面引入下面这段,依赖我们就搭建好了 <dependency> <groupId>com.aspose</groupId> <artifactId>aspose-words</artifactId> <version>原创 2022-04-19 10:57:46 · 2068 阅读 · 0 评论 -
java对象转jsonarray,并运用stream流各实例(jsonArray循环、分组、强转、某个字段集合值、集合用条件筛选对象)
这里写目录标题集合转json(一下都用 com.alibaba.fastjson包)JSONArray对象循环获取集合某个字段的值,set接收list集合根据字段分组jsonArray分组jsonArray根据字段值相等过滤出来,返回JSONArray集合筛选对象 如果有返回对象,没有返回null parallelStream(多线程,异步任务)集合转json(一下都用 com.alibaba.fastjson包)尽量以集合来获取数据方便后续计算//jfinal 数据库查询List<User&原创 2021-12-08 12:06:13 · 22951 阅读 · 1 评论 -
Java必会的工具库
Java自带工具方法1.List集合拼接成以逗号分隔的字符串// 如何把list集合拼接成以逗号分隔的字符串 a,b,c List<String> list = Arrays.asList("a", "b", "c"); // 第一种方法,可以用stream流 String join = list.stream().collect(Collectors.joining(",")); System.out.println(join); // 输出 a,b,c // 第二种方法,其原创 2021-07-16 17:02:24 · 153 阅读 · 0 评论 -
jfinal框架easyexcel插件导出带图片
官方文档导入jar <!-- https://mvnrepository.com/artifact/com.alibaba/easyexcel --> <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>2.2.原创 2021-04-26 12:02:37 · 426 阅读 · 0 评论 -
oss上传
//获取oss url private String getUrl(File file, String excelName) { String url=null; try { url = OssUploadController.uploadInputSteam(new FileInputStream(file), excelName+".rar"); System.out.println(url); }原创 2021-04-21 17:31:26 · 236 阅读 · 0 评论 -
hutool工具 导出excel 自定义样式------excel压缩jar
默认样式导出//excelpublic void test() {//随机值 String fileUuid = UuidKit.getUUIDNoMinus(); String path = (PathKit.getWebRootPath() + "/" + fileUuid + "/workModel/").replace("\\", "/"); //头部 String[] headers = {"序号", "编码", "创建时间",原创 2021-04-21 17:26:36 · 5226 阅读 · 1 评论 -
jfinal hutool工具 excelUtil ZipUtil实现导出excel并压缩文件
导入jar<!-- Hutool超级工具类 http://hutool.mydoc.io/ --> <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.4.6</version> &l原创 2021-03-25 11:30:57 · 1944 阅读 · 0 评论 -
JAVA里List集合中的对象根据对象的某个属性值降序或者升序排序java8
package com.stream;import java.util.Comparator;import java.util.List;public class Test { public static void main(String[] args) { List<TestDto> dtoList=TestDto.getDtos(); //根据TestDto对象的priority字段降序排序 dtoList.sort(Co原创 2021-01-05 12:05:40 · 2295 阅读 · 1 评论 -
thymleaf引擎中 checkbox的使用
controller@GetMapping("/get") String getWeiXin(Model model, @PathVariable("id") Long id) { List<Sysid> sysids = sysidService.list(id); model.addAttribute("sysids", sysids); return prefix+"/get"; }service //sysUser是中间表,sysid 账户表 user 用户表原创 2020-11-17 12:40:29 · 320 阅读 · 0 评论 -
js根据当前时间的时分判断是否在一个时间区间内
今天客户突然有个需求,有人值班时发一种短信模板,五人值班另一种短信模板,暂只实现了功能,后期实现到后台维护function checkAuditTime(beginTime,endTime){ var nowDate=new Date(); var beginDate=new Date(nowDate); var endDate=new ...原创 2019-08-19 11:21:29 · 3761 阅读 · 0 评论 -
html页面跳转传递对象及后台获取对象方法
这两天做项目 想在页面上直接跳转传对象,以多条件搜索功能为例//获取值并跳转window.location.href=encodeURI("/app/search?teacher{id:'"+id+"',name:'"+name+"',age:'"+age+"',course:'"+course+"'}");//后台 controllerimport net.sf.json.JSON...原创 2019-12-19 10:24:10 · 2386 阅读 · 0 评论 -
添加window自带画板 弹出
添加window自带画图 弹出画图插件下载链接<h1>画图</h1><button onclick="openHuaTu()">打开</button>function openHuaTu(){ $.ajax({ type:"POST", url:"test/openHuaTu", success: function(data){ } }); }@RequestMapping(valu原创 2020-05-09 16:24:31 · 213 阅读 · 0 评论 -
页面实现复制文本功能
对input框来进行赋值<input id="goUrl" type="text" value="需要复制的内容" readonly=""><a onclick="copy()">复制</a>function copy(){ $("#goUrl").val(); $("#goUrl").select(); document.execCommand("Copy"); alert("复制成功!")}...原创 2020-05-09 16:08:54 · 174 阅读 · 0 评论 -
ssm 读取自定义properties文件
ssm 读取自定义properties文件config.properties文件// An highlighted blockapiKey=2583697apiSecret =200dcf758xcxcxc35915b550373da5v5v8fd89springmvc配置<context:property-placeholder location=“classpath:*.p...原创 2020-04-30 13:29:49 · 739 阅读 · 0 评论