What is it? This annotation is a specialization of @Controller, specifically designed for...
What is the @PropertySource annotation? The @PropertySource annotation is used to tell...
What is? This is a class-level annotation that tells Spring that your class is a...
The @Configuration annotation indicates to Spring that the class has one or more @Bean methods. When...
What is @Scope This is a class-level annotation that allows the developer to define the...
In our application, we have a lot of objects. These objects are components of our application. When...
@ComponentScan is an annotation that tells Spring where to find classes annotated as Spring beans....
The @Profile annotation in Spring allows you to segregate configurations to be available only in...
What is @Component? @Component is a stereotype annotation from the Spring framework that...
The @Import annotation allows you to specify which configurations your Spring application should...
This annotation provides a way to add security configuration to business methods. It will use roles...
The @Lookup annotation is an injection (like @Inject, @Resource, @Autowired) annotation used at the...
These annotations are called at specific moments in the bean lifecycle. They allow you to define...
This annotation does bean injection, like the @Autowired and @Inject annotations. This annotation...
Introduction to the @DependsOn Annotation This annotation tells Spring that the bean...
If you read my post about the @Qualifier annotation, you have noticed that defining two beans of the...
When working on a Spring project, you might encounter a situation where you have multiple bean...
This annotation is an annotation that allows you to create an alias for an attribute in an...
Does your Spring application take too long to start? Maybe this annotation could help you. This...
Introduction The @Autowired annotation is one of the most common annotations when working...
While the @Required annotation has been deprecated since Spring Framework 5, it's not uncommon to...
You may already be familiar with @Value annotation from Spring. This annotation allows you to inject...
Introduction Working with Spring implies using lots of annotations to configure your...
Introduction Imagine writing an application where you have to create and manage...
Writing Java Applications in the Past When writing Java applications in the past, writing...
When writing tests for your code, it's easy to miss some parts, which can lead to bugs. How can you...
This is the last part of the specification-based testing series. Now we are going to put all of the...
Another important step in specification-based tests is analyzing boundaries. Boundaries are a common...
When we are testing our code, we can't only test things that will give us a successful return. Tests...
The third step of the specification-based test is to explore the program behavior. You can skip this...