我正在玩spring-boot-sample-data-elastcisearch项目。 我已更改pom并添加:
SampleElasticsearchApplicationWebXml extends SpringBootServletInitializer
使用嵌入式Tomcat运行。 我的application.properties文件中有:
spring.data.elasticsearch.http-enabled=true
spring.data.elasticsearch.local=true
我希望能够连接到localhost:9200,以便使用elasticsearch-head或其他JS客户端。我缺少什么?
谢谢,
Milan