SpringBoot

3 posts
2025

@Component vs @Bean in Spring: When to Use Each

Spring’s dependency injection is powerful, but it gives you more than one way to register a bean with the container. Two of the most …
Read more

Spring Annotations: @Scheduling, @Async, @Component, @Service, @Configuration, @Bean

Spring’s annotation model can feel overwhelming at first. There are annotations for everything: creating beans, scheduling tasks, …
Read more

Spring Boot Layered Architecture: Controller, Service, and Repository

One of the first questions you face when building a Spring Boot application is how to organize your code. You could put everything in one …
Read more