自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 收藏
  • 关注

转载 charles windows 和苹果手机进行连接抓包

1.首先确保电脑和手机处于同一个局域网,同一个wifi段2.charles点击help->local ip address 查看ip地址在charles配置https 1.安装ssl证书

2022-04-23 09:08:26 2747

原创 pgsql

1.inselect * from test where name in ( '张三','李四 );2. cast('' as jsonb)select cast(jsonb_array_elements(ip) as varchar) as source_ip, count(source_ip) as num \n" + "from test1 (network <> CAST('{}' AS jsonb )) group by sourceIp ORDER...

2022-01-18 11:29:41 614

原创 window 查看 服务器某个端口是否开放

telnet 192.168.1.1286379

2022-01-12 10:30:25 433

原创 git回退版本

test是某分支--git checkout -b test origin/test (创建test 分支并关联远程分支)git log查看版本第一个是当前版本号回退以下某个版本 比如说下面这个版本号git reset --hard b8cdaa61e8001446127c721fb4d9c534c推送远端分支git push -f -u origin test...

2021-12-29 15:58:35 164

原创 curl的基本用法

1.curlcurl 是常用的命令行工具,同样是linux上可以发送http请求的命令,Postman是一个很好的接口调用管理工具,但是在linux上非curl莫属常用的参数说明不带有任何参数时,curl 就是发出 GET 请求。$ curl https://www.example.com1.-X:参数指定 HTTP 请求的方法。2.-d:参数用于发送 POST 请求的数据体。3.-H:参数添加 HTTP 请求的标头。4.-k:参数指定跳过 SSL 检测。5.-L:参数会让 HTTP 请求跟

2021-11-25 17:50:10 785

原创 ElasticSearch的理解

Es的概念定义(功能):Elasticsearch 是一个分布式的搜索引擎与数据分析引擎es的作用:全文检索,结构化检索,数据分析,对海量数据进行近实时的处理理解:全文检索:我想搜索商品名称包含牙膏的商品,select * from products where product_name like “%牙膏%”结构化检索:我想搜索商品分类为日化用品的商品都有哪些,select * from products where category_id=‘日化用品’数据分析:我们分析每一个商品分类下有多少

2021-11-25 17:23:14 1518

原创 Es基本操作命令

1.查看所有索引:curl ‘localhost:9200/_cat/indices?v’2.查看test索引:curl -XPOST ‘localhost:9200/test/search?pretty’3.查看test_下所有索引:curl -XPOST 'localhost:9200/test*/_search?pretty’4.模糊查询(含有student)索引名称:curl ‘localhost:9200/_cat/indices?v’ | grep ‘student’5....

2021-11-25 16:07:47 1155

原创 springboot +ldap认证

application.ymlLDAP连接配置application.yml# LDAP连接配置spring: ldap: urls: ldap://10.33.47.7:7003 base: dc=xxx,dc=com username: cn=xxx,dc=xxx,dc=com password: UlAwRkYl配置pom.xmlspring-boot-starter-data-ldap是Spring Boot封装的对LDAP自动化配置的实现,它是基

2021-11-24 17:13:14 2323

原创 跨过https调用接口post方法

Object data = post(url, JSON.toJSONString(map));public static Object post(String url, String body) { class TrustAnyTrustManager implements X509TrustManager { public void checkClientTrusted(X509Certificate[] chain, String authType)

2021-11-22 11:07:17 1494

原创 postgresql的jsonb的用法一些

1.List ip 类似于[“1.1.1.1”,“2.2.2.2”] 需要输出把ip单列出来select jsonb_array_elements_text(ip) as ip from table;2.cast(ip::jsonb->>0 as INTEGER) 取出第一个3.array_to_string(ARRAY_AGG(b.id),’,’) 把属于父级以下的提炼出来...

2021-11-18 11:36:28 637

原创 ES中sql对应的curl指令

must 相当于andshould 相当于orgte>= gt> lte<= lt<1.sql对于andselect * from test1 , test2 where ( occur_time between 1634916697000 and 1634920297000 ) and ip =‘11.11.11.11’ and sp= ‘22.22.22.22’ order by time desc limit 8 offset 0对应的布尔查询curl -XPOS

2021-10-27 10:59:36 572

原创 数据库中limit的 用法

limit 的用法 查询第m页 n条1.limit ?,? 和 2.limit ? offset ?limit中第一个参数 (m-1)*n,第二个参数是n ,也就是查第2页,8条数据,limit 8,8,从数据库起始位置8,查询8条数据,是索引位置为8-15 ,数据库索引是从0位置开始limit中第一个参数 是n 第二个参数(m-1)*n...

2021-10-25 19:47:39 1135

原创 git分支管理

创建新分支 并关联远程分支git chekcout -b maomao origin/maomao

2021-02-25 18:36:49 67

原创 wps 2019 批量修改单元格 采用宏

AxMath的下载与安装下载AxMath链接:https://pan.baidu.com/s/1VLgMhoG2J_QEuOSAYq_RFw提取码:e9eo安装的时候将Cracker里的文件复制到AxMath的安装包里即可,点击替换即可如果你使用的是Office word,那么你就可以直接使用AxMath的功能了如果你使用的是WPS 2019,那么你需要执行以下操作,才能使用AxMath的功能下载VPA For WPS 2019链接:https://pan.baidu.com/s/1A8Wf

2020-10-27 18:56:38 3567

原创 java8 List转换成map

ArrayList<Student> studentList = new ArrayList<>(); Student student1 = new Student("001", "谢霆锋"); Student student2 = new Student("002", "张学友"); Student student3 = new Student("003", "张柏芝"); studentList.add(stude.

2020-07-16 18:12:54 260

原创 书写java代码规范性

格式1.被调用的函数应该放在执行调用的函数下面(垂直顺序);2.try代码块是事务,catch 维持在一种持续状态,无论try代码块中发生了什么均如此;3.别返回null值 ,对于List<泛型>可以返回Collections.emptyList(),可以避免调用此函数报空指针异常;4.优先顺序,公共静态常量、私有静态常量、私有实体变量、很少有公共变量;5.类应该短小;6.类应该只有少量的实体变量7.对象是过程的抽象,线程是调度的抽象8.并发是一种解耦策略9.对于类中 应该使用

2020-07-13 15:28:13 155

原创 Springboot 集成es

在pom.xml文件当中org.projectlomboklombok1.16.20 <!--elasticsearch --> <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>5.6.8</vers

2020-07-08 16:45:25 184 1

原创 postman下载excel出现乱码

2020-07-08 16:29:53 4025 3

原创 springboot下载excel

@GetMapping("exportExcel") public void export(HttpServletResponse response) { Workbook workbook = null; OutputStream out = null; try { // todo 根据业务需求获取需要写入Excel的数据列表 dataList List<ExcelDataVo> data.

2020-07-08 16:27:23 247

原创 springboot 使用poi 上传导入excel

在pom文件中 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.0.1</version> </dependency> <dependency> <groupId>org.

2020-07-08 16:11:44 282

原创 java使用poi读取excel

在pom.xml文件中引入 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.0.1</version> </dependency> <dependency> <groupId&gt

2020-07-07 14:02:05 118

原创 java读取txt文件json对象

CodeName.txt文件中是{“English”:“英国”,”China“:“中国”,}String dirname = “D:/test/CodeToName.txt”;List countries = new ArrayList<>();List strings = new ArrayList<>();//创建一个文件对象File codeNameFile = new File(dirname);//从硬盘存在的一个文件,读取其内容到程序中,用FileI

2020-07-03 19:14:06 1652

原创 连接不上远程服务器上的mysql数据库

客户端连接不上远程服务器上的数据库1.进入安装数据库的服务器上运行:(%代表所有客户端的机器都可以)** GRANT ALL PRIVILEGES ON . TO’root’@’%’ IDENTIFIED BY ‘mysqlpassword’ WITH GRANT OPTION;**运行:flush privileges;(必须运行此条命令方可生效)2.如果连接远程数据库 报1045*...

2019-01-16 11:57:18 903

原创 mybatis中org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误

@mybatis中遇到问题(Invalid bound statement (not found))解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误需要注意 接口mapper定义和xml中namespace中路径保持一致xml中有空字符 命名方法前边是否有空格或者无效字符 ,...

2018-12-20 18:41:08 113

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除