-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Spring Microservices
By :
The easiest way to develop and demonstrate Spring Boot's capabilities is using the Spring Boot CLI, a command-line tool. Perform the following steps:
Install the Spring Boot command-line tool by downloading the spring-boot-cli-1.3.5.RELEASE-bin.zip file from http://repo.spring.io/release/org/springframework/boot/spring-boot-cli/1.3.5.RELEASE/spring-boot-cli-1.3.5.RELEASE-bin.zip.
Unzip the file into a directory of your choice. Open a terminal window and change the terminal prompt to the bin folder.
Ensure that the bin folder is added to the system path so that Spring Boot can be run from any location.
Verify the installation with the following command. If successful, the Spring CLI version will be printed in the console:
$spring –-version Spring CLI v1.3.5.RELEASE
As the next step, a quick REST service will be developed in Groovy, which is supported out of the box in Spring Boot. To do so, copy and paste the following code using any editor...