摘要: <dependency> <groupId>net.lingala.zip4j</groupId> <artifactId>zip4j</artifactId> <version>2.6.4</version> </dependency> public static void zip(File cu 阅读全文
posted @ 2021-01-07 15:32 Bevis 阅读(3068) 评论(0) 推荐(1) 编辑
摘要: 请参考 https://www.jianshu.com/p/576dbf44b2ae 阅读全文
posted @ 2020-12-16 17:48 Bevis 阅读(48) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>com.baomidou</groupId> <artifactId>dynamic-datasource-spring-boot-starter</artifactId> <version>${dynamic.version}</version> </d 阅读全文
posted @ 2020-12-16 17:46 Bevis 阅读(1433) 评论(0) 推荐(0) 编辑
摘要: package com.sh.springboottdemo2.util; import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; import javax.crypto.Cipher; import javax.crypto.K 阅读全文
posted @ 2020-10-30 18:08 Bevis 阅读(240) 评论(0) 推荐(0) 编辑
摘要: package cn.com.utils; import java.sql.Connection; import java.sql.SQLException; import javax.sql.DataSource; import org.apache.log4j.Logger; import co 阅读全文
posted @ 2020-06-15 18:52 Bevis 阅读(313) 评论(0) 推荐(0) 编辑
摘要: package cn.com.utils; public class NumToChineseUtil { /** * Java 好用的 * int 数字转中文 * @param src * @return */ public static String read(int src) { final 阅读全文
posted @ 2020-04-26 18:11 Bevis 阅读(819) 评论(0) 推荐(0) 编辑
摘要: DecimalFormat df =new DecimalFormat(",##0.00"); df.format("123456.12556") // 结果: 123,456.13 // freemarker写法 // ${plan.premium?string(",##0.00")} 阅读全文
posted @ 2020-04-26 18:06 Bevis 阅读(712) 评论(0) 推荐(0) 编辑
摘要: $(function() { $(".limitbtn").each(function() { $(this)[0].addEventListener('click', function() { $(this).css("pointer-events", "none"); setTimeout(fu 阅读全文
posted @ 2020-04-15 17:15 Bevis 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 数据脱敏 注解定义 package cn.com.sensitive.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annot 阅读全文
posted @ 2020-03-26 18:30 Bevis 阅读(757) 评论(0) 推荐(0) 编辑
摘要: <!-- generator --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-generator</artifactId> <version>3.0.1</version> <scope>compil 阅读全文
posted @ 2020-03-26 18:10 Bevis 阅读(714) 评论(0) 推荐(0) 编辑
摘要: package cn.com.utils; import org.apache.commons.collections4.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import or 阅读全文
posted @ 2020-03-17 17:20 Bevis 阅读(227) 评论(0) 推荐(0) 编辑
摘要: package PathMatchUtils; import org.springframework.util.AntPathMatcher; import java.util.Map; /** * 请求地址匹配器 * (1)? 匹配一个字符(除过操作系统默认的文件分隔符) * (2)* 匹配0个或 阅读全文
posted @ 2020-03-13 12:55 Bevis 阅读(225) 评论(0) 推荐(0) 编辑
摘要: package cn.com.utils; import org.apache.commons.lang3.StringUtils; import org.apache.commons.mail.EmailException; import org.apache.commons.mail.HtmlE 阅读全文
posted @ 2020-03-10 19:18 Bevis 阅读(652) 评论(0) 推荐(0) 编辑
摘要: <!-- freemarker依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> </dependency> < 阅读全文
posted @ 2020-03-07 10:39 Bevis 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 1: Map版 package com.ciicsh.spring.boot.starter.core.util.excel.utils; import java.util.HashMap; import java.util.Map; import java.util.Objects; public 阅读全文
posted @ 2020-03-06 13:53 Bevis 阅读(1442) 评论(0) 推荐(0) 编辑
摘要: 1、转发 方式一:使用 "forword" 关键字(不是指java关键字),注意:类的注解不能使用@RestController 要用@Controller 1 2 3 4 @RequestMapping(value="/test/test01/{name}" , method = RequestM 阅读全文
posted @ 2020-03-02 18:24 Bevis 阅读(17492) 评论(0) 推荐(0) 编辑
摘要: ZipUtils-工具类 阅读全文
posted @ 2020-01-07 15:17 Bevis 阅读(594) 评论(0) 推荐(0) 编辑
摘要: Java数字序号转中文读写序号 阅读全文
posted @ 2019-12-26 17:05 Bevis 阅读(570) 评论(0) 推荐(0) 编辑
摘要: https://mirrors.aliyun.com/centos/7/isos/x86_64/ Index of /centos/7/isos/x86_64/ ../ 0_README.txt 16-Sep-2019 18:44 2495 CentOS-7-x86_64-DVD-1908.iso 阅读全文
posted @ 2019-12-25 10:38 Bevis 阅读(1937) 评论(0) 推荐(0) 编辑
摘要: <!-- https://mvnrepository.com/artifact/uk.com.robust-it/cloning --> <dependency> <groupId>uk.com.robust-it</groupId> <artifactId>cloning</artifactId> 阅读全文
posted @ 2019-12-16 16:13 Bevis 阅读(828) 评论(0) 推荐(0) 编辑
摘要: 条形码 阅读全文
posted @ 2019-12-10 11:04 Bevis 阅读(584) 评论(0) 推荐(0) 编辑
摘要: java zxing 生成条形码和二维吗 阅读全文
posted @ 2019-11-28 18:46 Bevis 阅读(1713) 评论(0) 推荐(0) 编辑
摘要: 强大的httpClientUtils 阅读全文
posted @ 2019-10-23 14:23 Bevis 阅读(3844) 评论(0) 推荐(2) 编辑
摘要: import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Toolkit; import java.awt.colo... 阅读全文
posted @ 2019-10-22 17:12 Bevis 阅读(4757) 评论(0) 推荐(1) 编辑
摘要: 生成二维码 阅读全文
posted @ 2019-10-22 16:41 Bevis 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 过滤掉map集合中key或value为空的值 阅读全文
posted @ 2019-10-17 14:19 Bevis 阅读(5706) 评论(0) 推荐(0) 编辑
摘要: package cn.com.utils; import org.apache.commons.lang3.StringUtils; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter 阅读全文
posted @ 2019-10-12 10:07 Bevis 阅读(759) 评论(0) 推荐(0) 编辑
摘要: package cn.com.utils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class CurrentUtils { private static final Logger LOGGER = LoggerFactory.getLogger(CurrentUtils.class); ... 阅读全文
posted @ 2019-10-12 09:49 Bevis 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.com.utils; 2 3 import org.apache.commons.fileupload.FileItem; 4 import org.apache.commons.fileupload.disk.DiskFileItemFactory; 5 import org.springframework.util.FileCopyUtils; 6 i... 阅读全文
posted @ 2019-10-12 09:45 Bevis 阅读(3079) 评论(0) 推荐(0) 编辑
摘要: CompletionService ExecutorService BlockingQueueFuture[若要实际应用可参照本文后面的工具类] CompletableFuture [jdk8] <== 也可以使用这个 如果你向Executor提交了一个批处理任务,并且希望在它们完成后获得结果。为此 阅读全文
posted @ 2019-10-12 09:41 Bevis 阅读(723) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/junlong750/article/details/50945883 Java脚本引擎 - Bevis - 博客园 (cnblogs.com) 阅读全文
posted @ 2019-09-24 15:48 Bevis 阅读(1240) 评论(0) 推荐(0) 编辑
摘要: 最近都在和Linux打交道,感觉还不错。我觉得Linux相比windows比较麻烦的就是很多东西都要用命令来控制,当然,这也是很多人喜欢linux的原因,比较短小但却功能强大。我将我了解到的命令列举一下,仅供大家参考: 系统信息 arch 显示机器的处理器架构uname -m 显示机器的处理器架构u 阅读全文
posted @ 2019-09-09 15:53 Bevis 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 表单重复提交 阅读全文
posted @ 2019-09-09 14:28 Bevis 阅读(6143) 评论(0) 推荐(0) 编辑
摘要: 一般我们会把常用的属性放在工程的classpath文件夹中,以property,yaml或json的格式进行文件存储,便于Spring-boot在初始化时获取。 一般我们会把常用的属性放在工程的classpath文件夹中,以property,yaml或json的格式进行文件存储,便于Spring-b 阅读全文
posted @ 2019-09-09 14:18 Bevis 阅读(1685) 评论(0) 推荐(0) 编辑
摘要: spring boot 配置 动态刷新 阅读全文
posted @ 2019-09-09 13:52 Bevis 阅读(1115) 评论(0) 推荐(0) 编辑
摘要: html页面下拉选择框,多选,带搜索 阅读全文
posted @ 2019-08-30 10:27 Bevis 阅读(1944) 评论(0) 推荐(0) 编辑
摘要: 在src下创建多级目录 然后右键build path-->use as source folder 就可以直接将多级普通文件夹转换成source folder build path下也可以直接new source folder build path 进入后也可以source > add source 阅读全文
posted @ 2018-12-08 16:59 Bevis 阅读(368) 评论(0) 推荐(0) 编辑
摘要: Quartz 是个开源的作业调度框架,为在 Java 应用程序中进行作业调度提供了简单却强大的机制。Quartz框架包含了调度器监听、作业和触发器监听。你可以配置作业和触发器监听为全局监听或者是特定于作业和触发器的监听。Quartz 允许开发人员根据时间间隔(或天)来调度作业。它实现了作业和触发器的 阅读全文
posted @ 2018-12-08 11:15 Bevis 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 【前言】在项目的管理功能中,对定时任务的管理有时会很常见。因为我们不能指望只在配置文件中配置好定时任务就行了,因为如果要控制定时任务的 “暂停” 呢?暂停之后又要在某个时间点 “重启” 该定时任务呢?或者说直接 “删除” 该定时任务呢?要改变某定时任务的触发时间呢? “添加” 一个定时任务对于系统的 阅读全文
posted @ 2018-12-08 11:12 Bevis 阅读(7089) 评论(0) 推荐(0) 编辑
摘要: left join [表名] on [条件] where [条件] --on表示连接条件 --where表示对结果的过滤条件 两者不尽相同,使用时需注意 例如: select * from table0 a left join table1 b on a.id = b.aid and b.statu 阅读全文
posted @ 2018-12-03 13:34 Bevis 阅读(839) 评论(0) 推荐(0) 编辑