
How to Create a Spring Boot Gradle Project From Scratch
Create a Spring Boot Gradle project with Initializr, read the generated build file with the Spring Boot plugin and dependency management plugin, and run it.
Tag
51 posts

Create a Spring Boot Gradle project with Initializr, read the generated build file with the Spring Boot plugin and dependency management plugin, and run it.

Controller, service and repository layers in Spring Boot: what they give a simple application, where they leak and what to change when the domain grows.

Design API pagination, filtering and sorting: query parameters, offset versus cursor, allowed sort fields, response envelopes, links and limits in Spring.

Lay out a Spring Boot project so component scanning finds your beans, packages follow features, and the structure survives growth from one team to several.

Debug a Spring Boot app from the IDE or attach to a running JVM, break only on matching requests and find out why a bean is missing.

Set HTTP cache headers in Spring: Cache-Control, max-age, no-store, private versus public, Vary, stale-while-revalidate and static resource caching.

See how Spring Boot auto configuration is discovered, which conditions decide whether a configuration applies, and why your own beans always win.

Compare the repository pattern with Spring Data repositories: what each is for, when a domain interface over Spring Data helps and when it adds nothing.

Use the Spring Boot conditions evaluation report and the Actuator conditions endpoint to find out why an auto configuration did or did not apply.

Fix Read timed out errors between Spring services by setting connect and read timeouts on RestClient and Feign, sizing pools and finding the slow side.

Why Hibernate throws LazyInitializationException outside a transaction, how to confirm which cause you have and the fixes in order of preference.

Write a Spring Boot starter in two modules: an auto configuration with properties and conditions, and a thin starter that pulls it in with its dependencies.