参考这位大神的博客开始学习elasticsearch(https://blog.csdn.net/cnweike/article/details/33736429);
1、在敲命令
curl -XPUT 'localhost:9200/customer/external/1?pretty' -d '
{
"name": "John Doe"
}'
{
"name": "John Doe"
}'
发现报错:
{
"error" : "Content-Type header [application/x-www-form-urlencoded] is not supported",
"status" : 406
}
"error" : "Content-Type header [application/x-www-form-urlencoded] is not supported",
"status" : 406
}
参考这位大神(https://blog.csdn.net/dtiove/article/details/78870607),问题解决。