Go beyond the basics with Spring Boot! This practical guide presents dozens of relevant scenarios in a convenient problem-solution-discussion format.
In Spring Boot in Practice you will
Spring Boot’s features from an expert’s perspective Configuring, logging, and monitoring Spring Boot applications Effective methods for database communication Utilizing Spring Security and securing your Spring application in production Designing and developing microservices and RESTful APIs with Spring Boot Microservice versioning, documentation, and security Reactive application development and reactive data access with WebSocket and RSocket Deploying Spring Boot applications on Kubernetes and major cloud platforms Implementing containerization in a Spring Boot application Using Spring Boot with Kotlin and GraalVM
Spring Boot in Practice is full of practical recipes for common development problems in Spring Boot. Author Somnath Musib has spent years building applications with Spring, and he shares that extensive experience in this focused guide. You’ll master techniques for using Spring Data, Spring Security, and other Spring-centric solutions. Learn how to work with Spring Boot and Kotlin, handling connections for multiple platforms, and how Spring Boot can simplify building microservices and APIs. Each recipe is built around a real-world problem, complete with a full solution and thoughtful discussion.
About the technology With Spring Boot, it’s a snap to create standalone Spring applications that require minimal manual setup. Spring Boot directly embeds a server like Tomcat or Jetty into your project and preconfigures core Spring settings, third-party libraries, security, and other key elements. It’s a big framework, with lots of powerful features. This book provides a rich collection of techniques to help you get the most out of Spring Boot.
About the book Spring Boot in Practice is a cookbook-style guide to Spring application development. Following a convenient Problem-Solution-Discussion format, it takes you technique-by-technique through Spring Boot fundamentals. You’ll dive deep into auto-configuration, security, microservices, and more. Along the way, you’ll also discover numerous advanced and hidden features. All the book’s source code is open source, so you can integrate the detailed samples into your own projects.
What's inside
Instantly useful techniques with reusable source code Configuring, logging, and monitoring Spring Boot applications Effective methods for database communication Securing Spring applications in production Microservices and RESTful APIs
About the reader For Spring Boot beginners with some Spring experience.
About the author Somnath Musib has over a decade of development experience, and has been actively working with Spring Boot since 2015.
Table of Contents PART 1 1 Booting Spring Boot PART 2 2 Common Spring Boot tasks 3 Database access with Spring Data 4 Spring Autoconfiguration and Actuator 5 Securing Spring Boot applications 6 Imple
All the basic concepts of Spring Boot have been explained in a very clear manner. Even those who have been using spring for a very long time, this book serves as a primer and at the same time provides in depth information for advanced level concepts. A very good resource for beginners or medium level application developers to understand the various components of spring and how and when they can be used. I have been exposed to spring boot projects configuration setup in several different ways by developers and this book has covered it all. I was able to use the concepts explained in the book at my work by referring to the book when needed.
Concepts are explained in a progressive manner so that concepts in earlier chapters can be used later
Learned about various locations where @Configurationproperties can be used. Although a slight disconnect between what is specified in the listing versus the explanation of the listing, true to the name, this book is truly worth and was able to use the code snippets straight out. Companion links to the GitHub source code in the livebook is very helpful.
True to its name, I was able to use several of the code snippets straight out of the book
At times the listings are missing a line or two of unimportant statements such as imports, I am nitpicking, but the book does a good job overall of explaining the concepts. Listing 2.36 it should be written more consistently, it uses isEmpty check for violations but not for the non empty ones.
Approaches suitable to the business need have been explained in a ready to use manner. Seemingly difficult concepts have been explained pretty well both by way of uml diagrams and related explanations
Third chapter explains with good examples the pros and cons of using criteria api vs query dsl. While maintaining hibernate applications the verbosity of criteria api for the code it generates is a little unwieldy.
Chapter 4 -- Explains the concepts of configuration for various environments pretty well. Deep dive into the spring auto configure capabilities and how to use it for various scenarios of datasource combination(both include and exclude), customize failure analyzer, details on actuator endpoints is very insightful.
Chapter 5 -- A very detailed explanation of foundational and advanced how to use several Spring Security features/classes to make the applications secure. to configuration using spring security and the filterchain.
Chapter 5 -- Explains how to enable and use advanced security features of Spring Security features
Chapter 6 -- A very comprehensive and exhaustive coverage with relevant code examples for user authentication and the various classes and built-in events that spring security provides, not loosing sight of user experience.
Chapter 7 -- End to End explanation of the REST API flow with relevant examples in the context of Spring Boot provides a fine grained view of the artifacts involved in the flow. Coverage of the spring mock mvc testing framework to test the RESTful API with out the heavy lifting has been explained very well.
Chapter 8 -- Was not aware that Spring supports non blocking asynchronous model using webflux without having to use threads. For Project Reactor based on reactive principles, author explains Observer Pattern and correlates with the non blocking asynchronous mode of communication with the backend explaining the two approaches viz. annotation based and functional end points approach contrasting it against the spring MVC model using Spring Webflux.
Chapter 9 -- For folks who are already familiar with Spring Boot this chapter is like a quick overview with details and easy to follow.
My thanks to Manning Publications for sending a review copy.
Most updated and comprehensive Spring Boot book. Compact and well organized. I strongly recommend a copy to you. Spring is a topic rapidly upgrading, and I start to look for Somnath Musib's nest Spring Boot book.
This book is an incredible way to learn Spring Boot, not in the common way where you can see the explanation about one topic; the author emphasizes showing a problem and the possible solution to that problem.
One of the book's highlights is the explanation of some advanced topics like the use of GraphQL and the native compilation of the images. Another highlight is the mention of Kotlin in the book because too many companies use it.
In my different talks at the conference, I mentioned this book as an excellent way to learn about Spring Boot.