摘要: 问题描述: 在SpringBoot中测试Elasticsearch的时候,当测试ElasticsearchRepository的文档操作的时候,在调用find()查询方法时报错,错误如下: 原因: 这是因为在实体类Item中为了方便实例化添加了一个有参构造函数,导致JVM不能添加默认的无参构造函数了 阅读全文
posted @ 2018-12-04 17:59 一人一城亦无忧 阅读(6081) 评论(0) 推荐(1)