Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Spring Microservices

You're reading from   Spring Microservices Internet-scale architecture with Spring framework, Spring Cloud, Spring Boot

Arrow left icon
Product type Paperback
Published in Jun 2016
Publisher Packt
ISBN-13 9781786466686
Length 436 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Rajesh R V Rajesh R V
Author Profile Icon Rajesh R V
Rajesh R V
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Demystifying Microservices FREE CHAPTER 2. Building Microservices with Spring Boot 3. Applying Microservices Concepts 4. Microservices Evolution – A Case Study 5. Scaling Microservices with Spring Cloud 6. Autoscaling Microservices 7. Logging and Monitoring Microservices 8. Containerizing Microservices with Docker 9. Managing Dockerized Microservices with Mesos and Marathon 10. The Microservices Development Life Cycle Index

Developing a RESTful service – the legacy approach


This example will review the traditional RESTful service development before jumping deep into Spring Boot.

STS will be used to develop this REST/JSON service.

Note

The full source code of this example is available as the legacyrest project in the code files of this book.

The following are the steps to develop the first RESTful service:

  1. Start STS and set a workspace of choice for this project.

  2. Navigate to File | New | Project.

  3. Select Spring Legacy Project as shown in the following screenshot and click on Next:

  4. Select Spring MVC Project as shown in the following diagram and click on Next:

  5. Select a top-level package name of choice. This example uses org.rvslab.chapter2.legacyrest as the top-level package.

  6. Then, click on Finish.

  7. This will create a project in the STS workspace with the name legacyrest.

    Before proceeding further, pom.xml needs editing.

  8. Change the Spring version to 4.2.6.RELEASE, as follows:

    <org.springframework-version>4.2.6.RELEASE&lt...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image