title: How to make elasticsearch embedded accessible via localhost:9200
body: <p>I am playing with <a href="https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-data-elasticsearch" rel="noreferrer">spring-boot-sample-data-elastcisearch</a> project.
  I've changed the pom and added:</p>
  
  <pre><code>SampleElasticsearchApplicationWebXml extends SpringBootServletInitializer 
  </code></pre>
  
  <p>to run with Tomcat embedded.
  My application.properties has</p>
  
  <pre><code>spring.data.elasticsearch.http-enabled=true
  spring.data.elasticsearch.local=true
  </code></pre>
  
  <p>I want to be able to connect to localhost:9200 in order to use elasticsearch-head or other JS client. What am I missing?
  Thanks,
  Milan</p>