2018年4月26日

摘要: elasticsearchTemplate.getClient().prepareIndex(indexName, type).setId(id).setSource(json).setOpType(IndexRequest.OpType.CREATE).execute().actionGet(); 阅读全文
posted @ 2018-04-26 21:41 yangjingzhi 阅读(934) 评论(0) 推荐(0) 编辑

2018年4月25日

摘要: Es结构 } 阅读全文
posted @ 2018-04-25 22:37 yangjingzhi 阅读(382) 评论(0) 推荐(0) 编辑

2018年4月18日

摘要: 1,简介 Springboot validator实际集成了Hibernatevalidator。主要是校验用户提交的数据的合理性的,比如是否为空了,密码长度是否大于6位,是否是纯数字的,等等。方便后台的数据合法性的校验。 2,Demo 以新增用户为例,在页面上有两个元素:姓名输入框,密码输入库以及 阅读全文
posted @ 2018-04-18 18:56 yangjingzhi 阅读(152) 评论(0) 推荐(0) 编辑
摘要: GET redix-test2/_mapping PUT redix-testPUT redix-test2PUT redix-test/_mapping/redix-type{ "properties": { "ename":{ "type": "string", "index": "analyz 阅读全文
posted @ 2018-04-18 13:33 yangjingzhi 阅读(258) 评论(0) 推荐(0) 编辑

2018年4月17日

摘要: 这些操作完全不用我们去实现,这些不是我们以往在普通的Spring项目中自己所定义的BaseDao吗?SpringBoot真的是非常体贴,大大减低了我们的工作量。但是更为强大的还在后面。我们通过继承JpaRepository接口,除了可以获得上面的基础CRUD操作方法之外,还可以通过Spring规定的 阅读全文
posted @ 2018-04-17 22:15 yangjingzhi 阅读(358) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><configuration> <property name="PATTERN" value="%-12(%d{yyyy-MM-dd}) |-%-5level [%thread] %c [%L] -|%X{uuid}| %m 阅读全文
posted @ 2018-04-17 20:00 yangjingzhi 阅读(431) 评论(0) 推荐(0) 编辑

2018年4月16日

摘要: get _cat/indices?v #查询所有的index # curl 'http://localhost:9200/index/_analyze?analyzer=ik&pretty=true' -d ' 联想召回笔记本电源线 阅读全文
posted @ 2018-04-16 17:02 yangjingzhi 阅读(125) 评论(0) 推荐(0) 编辑

2018年4月12日

摘要: 86. Spring Boot集成ActiveMQ【从零开始学Spring Boot】 博客分类: 从零开始学Spring Boot 86. Spring Boot集成ActiveMQ【从零开始学Spring Boot】 从零开始学Spring Boot 【视频&交流平台】 à SpringBoot 阅读全文
posted @ 2018-04-12 22:31 yangjingzhi 阅读(295) 评论(0) 推荐(0) 编辑
摘要: GET /firstindex/type/_mapping PUT /secondindex/type/2{ "name":"haoxueqing", "hobby":"sleep"} PUT /secondindex PUT /secondindex/_mapping/type{ "propert 阅读全文
posted @ 2018-04-12 21:16 yangjingzhi 阅读(3724) 评论(0) 推荐(0) 编辑

2018年3月19日

摘要: 摘要:本文主要说明了如何在Windows安装运行Kafka 一、安装JDK 过程比较简单,这里不做说明。 最后打开cmd输入如下内容,表示安装成功 二、安装zooeleeper 下载安装包:http://zookeeper.apache.org/releases.html#download 下载后解 阅读全文
posted @ 2018-03-19 21:55 yangjingzhi 阅读(146) 评论(0) 推荐(0) 编辑

导航