Book Image

Learning Spring Boot 2.0 - Second Edition

By : Greg L. Turnquist, Greg L. Turnquist
Book Image

Learning Spring Boot 2.0 - Second Edition

By: Greg L. Turnquist, Greg L. Turnquist

Overview of this book

Spring Boot provides a variety of features that address today's business needs along with today's scalable requirements. In this book, you will learn how to leverage powerful databases and Spring Boot's state-of-the-art WebFlux framework. This practical guide will help you get up and running with all the latest features of Spring Boot, especially the new Reactor-based toolkit. The book starts off by helping you build a simple app, then shows you how to bundle and deploy it to the cloud. From here, we take you through reactive programming, showing you how to interact with controllers and templates and handle data access. Once you're done, you can start writing unit tests, slice tests, embedded container tests, and even autoconfiguration tests. We go into detail about developer tools, AMQP messaging, WebSockets, security, and deployment. You will learn how to secure your application using both routes and method-based rules. By the end of the book, you'll have built a social media platform from which to apply the lessons you have learned to any problem. If you want a good understanding of building scalable applications using the core functionality of Spring Boot, this is the book for you.
Table of Contents (11 chapters)

Taking Your App to Production with Spring Boot

Here is my source code
Run it on the cloud for me
I do not care how
Cloud Foundry haiku (Onsi Fakhouri @onsijoe)

In the previous chapter, we learned how to secure our microservice-based social media platform.

In this chapter, we will cover the following topics:

  • Configuring profile-specific beans
  • Creating configuration property beans
  • Overriding property settings in production
  • Deploying our social media platform to the cloud

So, today is the day. We worked for weeks to build this system. And now we want to take it to production. What could happen? What could go wrong?

Answer: A lot. And...​a lot.

Spring Boot comes with powerful features to make it easy to tune and adjust things in production, allowing us to minimize the code. Some of the concepts presented here are rooted in The Twelve-Factor App (https://12factor...