- 博客(11)
- 资源 (6)
- 收藏
- 关注
转载 流式处理,获取key值
参考 https://segmentfault.com/q/1010000012710364 public static void main(String arg[]) { Map<String, String> map = new HashMap<>(); String str = "a=1&b=3.5&c=true"; Arrays.str...
2018-02-26 11:21:22 526
转载 Mybatis Mapper.xml继承机制
文章来源:https://segmentfault.com/a/1190000012470056Mapper.xml继承机制github地址Mybatis实际上隐藏了一个功能:Mapper.xml可以继承,这个在官方文档中并没有提到过,不过在这个issue (commit)里提到过。Statement覆盖利用Mapper.xml的继承机制,我们可以做到ChildMapper覆盖ParentMapp...
2018-02-24 16:45:27 10388
原创 elasticsearch 嵌套对象查询
// 创建嵌套对象mappingPUT /earth_index { "mappings": { "earthblog": { "properties": { "title":{ "type":"string"}, "body":{ "type":"string"},
2018-02-11 18:30:04 19791 1
原创 spring-data-elasticsearch嵌套对象
spring-data-elasticsearch支持嵌套对象创建,实体类:@Document(indexName = "xxxx", type = "ttt")public class Employee { @Id private String id; private String name; private Integer age; @Field( type = Fi...
2018-02-11 11:03:19 7891 10
原创 spring-data-elasticsearch查询No property ... found for...Did you mean '...'?
实体类字段定义:private String sku_no;dao中接口名定义:Goods findBySkuNo(String skuNo);spring-data按照接口方法定义的名字(默认认为是驼峰写法)skuNo去实体类查找对应字段,当找不到时,就报错了:org.springframework.data.mapping.PropertyReference
2018-02-06 16:26:39 5844 2
原创 403 for URL: http://www.terracotta.org/kit/reflector
java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.terracotta.org/kit/reflector?pageID=update.properties&patch=UNKNOWN&tc-product=ehcache-core+2.10.1&tc-version=2.10.1&up
2018-02-05 18:59:53 5758
原创 spring5+spring-data-elasticsearch集成
一、搞定依赖 UTF-8 5.0.0.RELEASE 3.0.0.RELEASE UTF-8 1.8 2.9.0 2.5.5.cat-SNAPSHOT org.springframework spring-aop ${spring.version} org.springframework spring-beans ${spring.version}
2018-02-05 18:34:03 3359 2
原创 让spring5.0支持velocity
新版spring5.0已经移除了对velocity的支持,下面就说说如何让spring5.0支持velocity。spring从4.3开始不再支持velocity,官方说法是:Velocity 1.7 dates back to 2010. After more than five years of nomaintenance in the original project, it
2018-02-05 15:25:35 4401 3
原创 Java异常: Found interface … but class was expected
This happens when your runtime classpath is different than your compile time classpath.这个异常是由于你的运行时classpath和编译时classpath 不一致。When your application was compiled, a class (named SomeInterface
2018-02-05 10:50:11 12966
转载 轻松理解非对称加密
作者:CoderAO链接:https://www.jianshu.com/p/2cdaf8e99f8d來源:简书对称加密先看百度的解释:采用单钥密码系统的加密方法,同一个密钥可以同时用作信息的加密和解密,这种加密方法称为对称加密,也称为单密钥加密。怎么理解呢?举个栗子.小红新建了一个文档只想自己和小明看,于是小红为这个文档设置了密码(加密), 然后再发送
2018-02-02 17:54:38 381
转载 ElasticSearch流水账
一: ElasticSearch 基本概念INDEX:这是ES存储数据的地方,类似于关系数据库的DATABASE。Document TYPE:嗯,类似关系数据库的表,主要功能是将完全不同SCHEMA(这个概念以后会讲到,不急)的数据分开,一个INDEX里面可以有若干个Document TYPE。Document:好吧,这个类似关系数据库的一行,在同一个Document TYPE下面,每一Docum...
2018-02-02 11:24:12 402 2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人