随笔分类 - java
摘要:minPriceList.stream().sorted(Comparator.comparing(l -> l.getCreateDate(), Comparator.nullsLast(Date::compareTo))).findFirst().get(); List<EnterpriseRa
阅读全文
摘要:实现思路: 用户登录请求登录接口时,验证用户名密码等,验证成功会返回给前端一个token,这个token就是之后鉴权的唯一凭证。 后台可能将token存储在redis或者数据库中。 之后前端的请求,需要在header中携带token,后端取出token去redis或者数据库中进行验证,如果验证通过则
阅读全文
摘要:nacos安装配置和部署教程 首先说明:次教程是针对的nacos版本:1.3.2,不同的版本,可能略有不同。 Nacos支持三种部署模式 单机模式 - 用于测试和单机试用。 集群模式 - 用于生产环境,确保高可用。 多集群模式 - 用于多数据中心场景。 单机部署: 1、首先去官网下载nacos ht
阅读全文
摘要:1、通过docker安装ribbitmq 拉取镜像docker pull rabbitmq:3.8.6-management运行镜像docker run -d --name rabbitmq -p 5672:5672 -p 15672:15672 --hostname myRabbit -e RAB
阅读全文
摘要:springboot整合swagger2
阅读全文
摘要:git常用命令学习,git基础命令,git原理分析 一:常用命令 git config --global user.name "John Doe"git config --global user.email johndoe@example.com git config --list 查看配置 git
阅读全文
摘要:1.在@Select中 @Select("<script>" + "SELECT IDFA FROM t_xxx WHERE IDFA IN " + "<foreach item='item' index='index' collection='strList' open='(' separator
阅读全文
摘要:在写按时间段查询的sql语句的时候 一般我们会这么写查询条件: where date>='2010-01-01' and date<='2010-10-1'。 但是在实执行Sql时些语句会转换成这样: where date>='2010-01-01 0:00:00' and date<='2010-
阅读全文
摘要:List<AccessAreaVo> areaVo = vos.stream() .skip(pageable.getPageSize() * (pageable.getPageNumber() - 1)) .limit(pageable.getPageSize()).collect(Collect
阅读全文
摘要:java11新特性HttpClient
阅读全文
摘要:官网链接:https://www.elastic.co/cn/support/matrix#matrix_compatibility
阅读全文
摘要:@JSONField(name = "grantObjType") @Pattern(regexp = "(USER_TYPE)|(PROJECT_TYPE)",message = "授权对象类型只能USER_TYPE,PROJECT_TYPE") private String grantObjType;
阅读全文
摘要:1、2个日期时间范围输出之间的时间
阅读全文
摘要:LocalDateTime时间格式化
阅读全文
摘要:1、将整形数组转换成list集合 int[] projectIdArray = techCatalog.getProjectIdArray(); //将数组转换成集合 List prjectId=null; if(projectIdArray!=null){ Integer[] integers = ArrayUtils.t...
阅读全文
摘要:public class TestMapping { private static String ES_HOST1 = "127.0.0.1"; //private static String ES_HOST2 = "192.168.10.254"; private static int ES_PO
阅读全文
摘要:通过pre标签进行格式化展示,使用JSON.stringify()方法转换。 <html> <head> <title>HTML显示json字符串并且进行格式化</title> </head> <body> <p id="show_p">{ "name": "Brett", "address":"北
阅读全文