Skip to Main Content
Spring Boot 2.0 Projects
book

Spring Boot 2.0 Projects

by Mohamed Shazin Sadakath
July 2018
Intermediate to advanced content levelIntermediate to advanced
336 pages
9h 23m
English
Packt Publishing
Content preview from Spring Boot 2.0 Projects

Demonstrating Bloggest

In order to run the Bloggest web application, it requires that the Elasticsearch data store be up and running. The following command can be used to start Elasticsearch:

$ <Path to Elasticsearch>/bin/elasticsearch

When everything is put together, build and run the Bloggest, which you will be able to access using the http://<host>:<port> URL.

There are several ways to run a Spring Boot application, some of them are mentioned here:

  • Running the Spring Boot application main class using an IDE.
  • Building a JAR or WAR file using the following Maven command and then running:
$ mvn clean install$ java -jar target/<package-name>.[jar|war]
  • Running using a Spring Boot Maven plugin:
$ mvn clean spring-boot:run

After running, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Spring Boot 2.0

Mastering Spring Boot 2.0

Dinesh Rajput
Mockito for Spring

Mockito for Spring

Sujoy Acharya

Publisher Resources

ISBN: 9781789136159Supplemental Content