IDEA 插件整理
摘要:插件市场:https://plugins.jetbrains.com/ Codota AI Autocomplete for Java and JavaScript 代码智能提示插件 Key Promoter X 快捷键提示插件 CodeGlance 显示代码缩略图插件 Lombok 简化臃肿代码插
阅读全文
posted @
2021-12-09 11:09
陌生街中吹起褪色故梦
阅读(56)
推荐(0) 编辑
Hutool-http
摘要:Maven <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.7.9</version> </dependency> 笔记 import cn.hutool.http.He
阅读全文
posted @
2021-08-27 18:08
陌生街中吹起褪色故梦
阅读(1082)
推荐(0) 编辑
Base64的编码解码
摘要:Maven <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>tomcat-util</artifactId> <version>10.0.10</version> </dependency> Base64的编码解码 impo
阅读全文
posted @
2021-08-26 18:05
陌生街中吹起褪色故梦
阅读(483)
推荐(0) 编辑
HttpClient
摘要:Maven: <!--https://github.com/apache/httpcomponents-client--> <dependency> <groupId>org.apache.httpcomponents.core5</groupId> <artifactId>httpcore5</a
阅读全文
posted @
2021-08-19 14:50
陌生街中吹起褪色故梦
阅读(57)
推荐(0) 编辑
自增序列号生成与重置
摘要:需求场景:生成自增的6位数(如:000001-999999),并且每年都要重新开始(000001开始)。 实现思路:Oracle创建自增序列、重置。 1、Oracle创建自增序列。 --获取用户下的所有序列 select * from dba_sequences t where sequence_o
阅读全文
posted @
2021-07-16 15:07
陌生街中吹起褪色故梦
阅读(821)
推荐(0) 编辑
JAVA常用工具类
摘要:1、java.util equals比较两个对象是否相等的时候,还需要对左边的对象进行判空,不然可能会报空指针异常(java.lang.NullPointerException),所以用 java.util包的 Objects。 Objects.equals("1","1"); 2、org.apac
阅读全文
posted @
2021-06-29 16:34
陌生街中吹起褪色故梦
阅读(100)
推荐(0) 编辑
Java 枚举(Enum)
摘要:public enum DzzzEnum { GROUP_ONE("1","测试一"), GROUP_TWO("2","测试二"); private String code; private String name; DzzzEnum(String code, String name) { this
阅读全文
posted @
2021-06-04 09:57
陌生街中吹起褪色故梦
阅读(52)
推荐(0) 编辑
JAVA 反射校验
摘要:现公司开发项目,采用前后端分离的背景下,90%业务存在许许多多前置条件校验,如:学历,深户,社保等等,基于安全考虑,申报业务在入库前通过JAVA反射来调用校验方法。 基于Hutool工具类库的实现: MAVEN <dependency> <groupId>cn.hutool</groupId> <a
阅读全文
posted @
2021-02-09 17:37
陌生街中吹起褪色故梦
阅读(161)
推荐(0) 编辑
Retrofit:后端发送HTTP请求
摘要:引入Maven依赖: <dependency> <groupId>com.github.lianjiatech</groupId> <artifactId>retrofit-spring-boot-starter</artifactId> <version>2.2.5</version> </dep
阅读全文
posted @
2021-01-02 14:05
陌生街中吹起褪色故梦
阅读(382)
推荐(0) 编辑
SpringBoot整合Swagger2
摘要:Maven依赖: <!-- Swagger2 --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </depende
阅读全文
posted @
2020-10-11 21:00
陌生街中吹起褪色故梦
阅读(99)
推荐(0) 编辑
SpringBoot集成EhCache
摘要:Maven依赖: <!-- EhCache --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId> </dependency> <d
阅读全文
posted @
2020-10-09 20:31
陌生街中吹起褪色故梦
阅读(98)
推荐(0) 编辑
SpringBoot实现定时器
摘要:JDK 的Timer类 SpringTask Quartz SpringTask实现步骤: SpringBoot启动类添加@EnableScheduling 注解,开启定时任务功能。 编写定时任务,新建SchedulingTask类 在任务的类上写@Component,将当前的任务类注入到容器。 在
阅读全文
posted @
2020-09-24 21:28
陌生街中吹起褪色故梦
阅读(175)
推荐(0) 编辑
BigDecimal
摘要:例子:加减乘除(+-*/) System.out.println(0.05 + 0.01); System.out.println(1.0 - 0.42); System.out.println(4.015 * 100); System.out.println(123.3 / 100); 运算结果:
阅读全文
posted @
2020-05-26 23:11
陌生街中吹起褪色故梦
阅读(189)
推荐(0) 编辑
JAVA将 Word 文档转换为 PDF
摘要:技术来源 下载spire.doc-2.2.0.jar地址 帮助文档 POM引入Jar(本人把jar放在项目的src/main/resources/lib目录下): <dependencies> <dependency> <groupId>e-iceblue</groupId> <artifactId
阅读全文
posted @
2020-04-12 00:37
陌生街中吹起褪色故梦
阅读(852)
推荐(0) 编辑
Java Lombok
摘要:IDEA安装插件: Maven依赖: <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> Lombok最常用
阅读全文
posted @
2020-03-18 22:56
陌生街中吹起褪色故梦
阅读(261)
推荐(0) 编辑
spring定时器
摘要:开发工具:eclipse 以下Jar包放在lib目录下:aopalliance-1.0.jar 、commons-logging-1.2.jar、quartz-all-1.6.1.jar、spring-aop-4.2.0.RELEASE.jar、spring-beans-4.2.0.RELEASE.
阅读全文
posted @
2018-08-13 17:24
陌生街中吹起褪色故梦
阅读(140)
推荐(0) 编辑
关于数组比较
摘要:找出数组a(操作后数组)与数组b(原始的数组)新增的元素? let temp=[]; for(var i=0;i<a.length;i++){ for(var j=0;j<b.length;j++){ if( a[i].id = b[j].id ){ break; } if ( j== b.leng
阅读全文
posted @
2018-03-27 16:44
陌生街中吹起褪色故梦
阅读(100)
推荐(0) 编辑