2020年2月23日
摘要: 1、application.yml server: port: ${port:40100}spring: application: name: xc-search-servicexuecheng: elasticsearch: hostlist: ${eshostlist:127.0.0.1:920 阅读全文
posted @ 2020-02-23 13:10 小猪_佩奇 阅读(1187) 评论(0) 推荐(0) 编辑
  2020年2月17日
摘要: package com.xuecheng.test.fastdfs;import org.csource.common.MyException;import org.csource.fastdfs.*;import org.junit.Test;import org.junit.runner.Run 阅读全文
posted @ 2020-02-17 00:13 小猪_佩奇 阅读(1723) 评论(0) 推荐(0) 编辑
  2020年1月31日
摘要: 重写(Override) 重写是子类对父类的允许访问的方法的实现过程进行重新编写, 返回值和形参都不能改变。即外壳不变,核心重写! 重写的好处在于子类可以根据需要,定义特定于自己的行为。 也就是说子类能够根据需要实现父类的方法。 重写方法不能抛出新的检查异常或者比被重写方法申明更加宽泛的异常。例如: 阅读全文
posted @ 2020-01-31 00:35 小猪_佩奇 阅读(185) 评论(0) 推荐(0) 编辑
  2020年1月21日
摘要: new Vue({ el:"#app" , data:{ user:{ id:"", username:"", password:"", age:"", sex:"", }, userList:[] }, methods:{ findAll:function () { //在当前方法中定义一个变量, 阅读全文
posted @ 2020-01-21 18:21 小猪_佩奇 阅读(2117) 评论(0) 推荐(0) 编辑
  2020年1月19日
摘要: package com.hope;import com.fasterxml.jackson.core.JsonProcessingException;import com.fasterxml.jackson.databind.ObjectMapper;import com.hope.domain.U 阅读全文
posted @ 2020-01-19 23:39 小猪_佩奇 阅读(7342) 评论(0) 推荐(0) 编辑
  2020年1月17日
摘要: /**步骤:创建工程,导入相应的包 》配置文件 》创建实体类对象 》创建接口 》测试增删改查的方法 **/ //步骤:创建工程,导入相应的包 <dependencies> <dependency> <groupId>org.elasticsearch</groupId> <artifactId>el 阅读全文
posted @ 2020-01-17 17:53 小猪_佩奇 阅读(1695) 评论(0) 推荐(0) 编辑
摘要: package com.hope.es;import org.elasticsearch.action.search.SearchResponse;import org.elasticsearch.client.transport.TransportClient;import org.elastic 阅读全文
posted @ 2020-01-17 15:27 小猪_佩奇 阅读(1272) 评论(0) 推荐(0) 编辑
  2020年1月16日
摘要: package com.hope.es;import org.elasticsearch.client.transport.TransportClient;import org.elasticsearch.common.settings.Settings;import org.elasticsear 阅读全文
posted @ 2020-01-16 20:56 小猪_佩奇 阅读(842) 评论(0) 推荐(0) 编辑
  2020年1月15日
摘要: package com.hope.lucene;import org.apache.lucene.document.Document;import org.apache.lucene.document.Field;import org.apache.lucene.document.StoredFie 阅读全文
posted @ 2020-01-15 19:15 小猪_佩奇 阅读(262) 评论(0) 推荐(0) 编辑
摘要: package com.hope.lucene;import org.apache.lucene.document.Document;import org.apache.lucene.document.LongPoint;import org.apache.lucene.index.Director 阅读全文
posted @ 2020-01-15 19:13 小猪_佩奇 阅读(300) 评论(0) 推荐(0) 编辑