
Fix NoUniqueBeanDefinitionException With Qualifier
Resolve the Spring error about several matching beans with @Primary, @Qualifier or by injecting all of them, and learn which one fits.
Everything you need to level up your coding skills.

Resolve the Spring error about several matching beans with @Primary, @Qualifier or by injecting all of them, and learn which one fits.

Fix a 403 Forbidden on POST, PUT and DELETE in Spring Security by sending the CSRF token, configuring it for APIs or checking roles and CORS preflight.

Fix ClassNotFoundException for javax or jakarta classes after upgrading Spring Boot or a server by finding the library or container on the wrong namespace.

Why HikariCP reports that a connection is not available, how to tell a leak from a pool that is too small, and how to size the pool for the database.

Learn the order in which Spring Boot reads configuration: command line, environment, profile files, application files and defaults.

Understand the two causes of BeanCurrentlyInCreationException, a true dependency cycle and an early reference that later got wrapped in a proxy.

Run the OpenRewrite javax to jakarta recipe on a Maven or Gradle project, review the diff, fix the leftovers and verify the result with tests.

Fix the Maven and Gradle error about a missing main class by repackaging only the runnable module or by naming the main class explicitly.

Read a BeanCreationException trace to its root cause and fix the usual culprits: constructors that throw, bad schemas and absent services.

Bind application.yml values to typed Java records with @ConfigurationProperties: prefixes, nested objects, lists, durations, defaults and relaxed names.

Use SpringBootTest without slow suites: share contexts, avoid DirtiesContext, trim the context, use slices and share containers.

Configure Spring Boot logging: set levels per package, write rotating files, use profiles, change levels at runtime and add MDC fields.
We send one email when a new post is published. No spam.