Skip to Content
Learning Spring Boot 3.0 - Third Edition
book

Learning Spring Boot 3.0 - Third Edition

by Greg L. Turnquist
December 2022
Beginner to intermediate content levelBeginner to intermediate
270 pages
6h 13m
English
Packt Publishing
Content preview from Learning Spring Boot 3.0 - Third Edition

3

Querying for Data with Spring Boot

In the previous chapter, we learned how Spring Boot manages embedded servlet containers, automatically registers our web controllers, and even provides JSON serialization/deserialization, easing the creation of APIs.

What application doesn’t have data? Spoiler alert – none. That’s why this chapter is focused on learning some of the most powerful (and handy) ways to store and retrieve data.

In this chapter, we’ll cover the following topics:

  • Adding Spring Data to an existing Spring Boot application
  • DTOs, entities, and POJOs, oh my!
  • Creating a Spring Data repository
  • Using custom finders
  • Using Query By Example to find tricky answers
  • Using the custom Java Persistence API (JPA)

Being able to store and retrieve ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Spring Boot 3.0

Mastering Spring Boot 3.0

Ahmet Meric

Publisher Resources

ISBN: 9781803233307Supplemental Content