
Micronaut vs Spring Boot for New Microservices Compared
Compare Micronaut and Spring Boot for new microservices on startup, memory, native images, ecosystem, learning curve and team fit, with a clear verdict.
Everything you need to level up your coding skills.

Compare Micronaut and Spring Boot for new microservices on startup, memory, native images, ecosystem, learning curve and team fit, with a clear verdict.

Fix invalid target release and source option errors by setting maven.compiler.release, updating the compiler plugin and making Maven run on the right JDK.

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

Decode the Note about unchecked or unsafe operations, find the lines with Xlint, and fix raw types and casts instead of suppressing the warning.

Handle dates and time zones in Spring REST APIs: use Instant and ISO 8601, set Jackson and database zones, bind query dates and test across time zones.

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.

Follow a Spring bean through definition, instantiation, injection, initialization callbacks, use and destruction, with the order of each hook shown in code.

Organise Java packages by feature instead of by layer: a layout for Spring Boot, package private visibility, shared code rules and a path to modules.

Prevent server side request forgery in Java: allowlists for outbound URLs, blocking private and metadata addresses, DNS rebinding and redirect handling.

Write a ThreadFactory that names threads, sets daemon status and an uncaught exception handler, so dumps and logs show which pool a thread is in.

Learn Jakarta REST (JAX-RS): resource classes, path and parameter annotations, content negotiation, providers, exception mappers, filters and the client API.

Fix Mockito errors about final classes, records and static methods by using the inline mock maker, and decide when a final class should be an interface.
We send one email when a new post is published. No spam.