摘要:
package com.session.demo;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBoo... 阅读全文
摘要:
Spring Security启用csrf防护后,会对post、delete、put等请求进行安全校验。过程是,请求里必须携带crfs的tocken,如果请求里不带有tocken时,服务器会认为该请求非法,请求就会被拒绝。如何处理? 1 在页面mate进行... 阅读全文
摘要:
https://gitee.com/luckycyl/ElasticSearchDemo 阅读全文
Ubuntu中启动ElasticSearch报错:max virtual memory areas vm.max_map_count [65530] is too low, increase to a
摘要:
sudo gedit /etc/sysctl.conf在该文件任意地方加入:vm.max_map_count=655360sudo sysctl -p重启ES 阅读全文
摘要:
一 子条件查询:特定字段查询所指特定值。分为:Query context和Filter context 1 Query context 概念:在查询中,除了判断文档是否满足查询条件外,ES还会计算一个_score来标识匹配的程度,旨在判断目标文档和... 阅读全文
摘要:
简单查询、条件查询、聚合查询 (1)创建book索引 代码: { "settings":{ "number_of_shards":3, "number_of_replicas":1 }, "mappings":{ "novel":{ ... 阅读全文
摘要:
删除文档、删除索引 (1)利用Postman删除文档 (2)利用head插件删除索引操作 book索引已经不见了 (3)利用Postman删除索引 删除索引会清空所有数据,所以删除索引操作超级危险,不... 阅读全文
摘要:
方式:直接修改、通过脚本修改 直接修改 (1)修改id为1的数据 (2)查看 脚本修改 { "script":{ "lang":"painless", "inline":"... 阅读全文