706 Star 2K Fork 873

dromara / easy-es

 / 详情

Caused by: com.xpc.easyes.core.exception.EasyEsException: no such method:

Done
Opened this issue  
2022-04-02 16:26

version 0.9.7

测试 insert 操作,总是报错,但是数据插入,这个是我配置的原因吗?

代码如下

`
@EsMapperScan("org.coredata.core.data.dao.es")
public class LogpressureApplication {

public static void main(String[] args) {
    SpringApplication.run(LogpressureApplication.class, args);
}

}
`

`
@w_m
private TagMapper tagMapper;

@test
public void test() {
TagBean tagBean = new TagBean();
List<Map<String, Object>> array = new ArrayList<>();
Map<String, Object> dict1 = new HashMap<>();
dict1.put("value", "北京");
dict1.put("type", 1);
dict1.put("time", 1648868789392L);
array.add(dict1);
Map<String, Object> dict2 = new HashMap<>();
dict2.put("value", "女");
dict2.put("type", 1);
dict2.put("time", 1648868789392L);
array.add(dict2);
Map<String, Object> dict3 = new HashMap<>();
dict3.put("value", "不爱打游戏");
dict3.put("type", 1);
dict3.put("time", 1648868789392L);
array.add(dict3);
tagBean.setDataTagForAnalysis(array);
tagBean.setTagType(1);
tagBean.setProcessPeople("default");
tagMapper.insert(tagBean);
}
`

Comments (1)

志伟 created任务
志伟 changed description
Expand operation logs

这个异常和你springboot和es版本不兼容有关,请自查,springboot推荐2.5.x,es版本7.x.

elasticsearch changed issue state from 待办的 to 已完成

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
10085871 easy es 1656483890 1182849 loveqianqian 1642306958
Java
1
https://gitee.com/dromara/easy-es.git
git@gitee.com:dromara/easy-es.git
dromara
easy-es
easy-es

Search

113223 674803ea 1850385 170725 2838fb2a 1850385