在elasticsearch-6.2.1config的elasticsearch.yml中加入
http.cors.enabled: true http.cors.allow-origin: "*"
再运行显示正常
上一篇 SpringMVC注解开发
下一篇 application配置
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号