Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Peter Späth, Felipe Gutierrez

Rating No ratings yet

Quickly and productively build complex Kotlin-based Spring applications and microservices out of the box, with minimal concern over things such as configurations. This revised edition will show you how to fully leverage the Spring Boot 3 micro-framework and apply it to create enterprise-ready Kotlin-based cloud-native applications, microservices, and web applications that just work. The book covers what has been added to the new Spring Boot 3 release, including improved support for the Kotlin programming language, changes to Stream Editor UI, Maven Preemptive Authentication, building Docker images using cloud-native build packs, building layered jars for optimized Docker images, E2E traceability for configuration properties, many dependency upgrades, support for Spring Data, and much more. This book is your in-depth pragmatic guide for increasing your enterprise Kotlin and cloud application productivity while decreasing development time. It is a no-nonsense guide with case studies of increasing complexity throughout the book. The main author, a senior solutions architect and Principal Technical instructor at Pivotal, the company behind the Spring Framework, shares his experience, insights, and first-hand knowledge about how Spring Boot technology works, and best practices. This is an essential book for your Kotlin-based Spring learning and reference library. Who This Book Is For Experienced Spring, Java, and Kotlin developers seeking increased productivity gains and decreased complexity and development time in their applications and software services

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on, case-study-driven guide to building Kotlin-based Spring Boot 3 applications and microservices, written for experienced Java/Spring developers who want to cut configuration overhead and ship cloud-native services faster. 【Book Arc】 - **Opening (~0%–15%)**: A quick-start "Users App" built through start.spring.io, Gradle, a Kotlin REST controller, and tests — establishing the minimal path from zero to a running Spring Boot 3 service and explaining why Spring Boot's opinionated defaults matter. - **Early (~15%–35%)**: Core building blocks — Spring Framework fundamentals, data access with Spring Data, web/UI layers, and security (including OAuth2 social login and the Spring Authorization Server) — applied incrementally to the running sample apps. - **Middle (~35%–55%)**: Integration and operations concerns — messaging (events, JMS, AMQP/RabbitMQ, WebSockets, RSocket), Actuator with observability (metrics, logs, tracing), and native/AOT compilation with GraalVM. - **Late (~55%–75%)**: Packaging and extensibility — Docker images via cloud-native build packs, layered jars, custom Spring Boot starters, and publishing them as Maven artifacts. - **Ending (~75%–100%)**: Newer directions — Spring Modulith as an alternative to microservices, a Spring AI chat client walkthrough, plus appendices on migration and GraphQL. 【Key Takeaways】 - **Kotlin is the working language throughout, not a translation afterthought** (Opening): the code is idiomatic Kotlin (data classes, `@get:` annotations, null-safety), so you absorb Kotlin expressiveness alongside Spring idioms. - **One evolving case study beats scattered snippets** (Early–Late): the "Users App" and "My Retro App" grow chapter by chapter, letting you see how features compose rather than reading isolated examples. - **Security is treated as a first-class layer** (Early): from basic auth to OAuth2 social login and a Spring Authorization Server, showing how to wire real authentication into the sample apps. - **Messaging options are compared, not just listed** (Middle): events, JMS, AMQP/RabbitMQ, WebSockets, and RSocket are each demonstrated in context, helping you choose by use case. - **Observability is built in via Actuator** (Middle): health indicators, custom endpoints, and metrics/logs/tracing show how to make services production-visible. - **Native images and AOT are demystified** (Middle): GraalVM and Spring AOT are explained with practical caveats rather than hype. - **Packaging and reuse get real treatment** (Late): Docker build packs, layered jars, and custom starters teach you to distribute and optimize deployments. - **The book looks forward** (Ending): Spring Modulith vs. microservices and a Spring AI client signal where the ecosystem is heading. 【Reading Tips】 - **Deep-read the Opening and Early chapters** if you're new to Kotlin+Spring; the quick-start and security chapters set up everything later. - **Skim the messaging chapter** for the broker you actually use (RabbitMQ, JMS, or RSocket) and skip the rest on first pass. - **Treat Actuator, native/AOT, and packaging as reference sections** — return to them when deploying. - **Run the GitHub sample code alongside** each chapter; the book assumes hands-on testing. - **Don't expect deep Kotlin tutorials** — the book teaches Kotlin through Spring usage, so pair it with a Kotlin reference if needed. 【Coverage Limits】 The excerpts are heavily weighted toward the table of contents and the Opening quick-start; detailed content for middle and later chapters (security internals, messaging, native images, Spring AI) is only partially visible, so this guide's later-stage descriptions rely on chapter structure rather than full text.
Excerpt 1
ervices Cover Book cover of Pro Spring Boot 3 with Kotlin Pro Spring Boot 3 with Kotlin Peter Späth and Felipe Gutierrez Pro Spring Boot 3 with Kotlin In-Dep...
View in text
Excerpt 2
ng the My Retro App 179 But Wait.​.​.​ What.​.​.​ Again?
View in text
Excerpt 3
ive My Retro App 668 GraalVM Native Images, wait.​.​.​ What?
View in text
Excerpt 4
Retro App 668 GraalVM Native Images, wait.​.​.​ What?
View in text
Excerpt 5
ation and one for the unit/integration tests, respectively). Don’t worry about these dependencies for now; we discuss them in detail in the following chapter...
View in text
Excerpt 6
should see a window similar to the one shown in Figure 1-4 . Figure 1-4 IntelliJ IDEA tests If you have imported the project into Visual Studio Code (a.k.a....
View in text
Excerpt 7
which users can express their ideas based on the Card Type. Card Type: Happy card : All the positive thoughts, actions, or events Meh card : Ideas that are q...
View in text
Excerpt 8
cation based on the dependencies that your application uses. This annotation also brings the exclude and excludeName parameters that can be used to avoid any...
View in text
Tags
AI categories
Programming LanguageBackendCloud Native
ISBN: 8868811316
Publisher: Apress
Publish Year: 2025
Language: English
Pages: 936
File Format: EPUB
File Size: 12.8 MB