This annotation does bean injection, like the @Autowired and @Inject annotations. This annotation is packaged with Jakarta EE and will work on your Spring projects….
Tag: technology
Understanding the @DependsOn Annotation in Spring
Introduction to the @DependsOn Annotation This annotation tells Spring that the bean marked with this annotation should be created after the beans that it depends…
Using @Qualifier to Resolve Bean Conflicts in Spring
When working on a Spring project, you might encounter a situation where you have multiple bean implementations for the same type. This can cause an…
How @AliasFor Simplifies Annotations usage in Spring
This annotation is an annotation that allows you to create an alias for an attribute in an annotation. These attributes have the same function. The…
3 Ways to Use the @Lazy Annotation in Spring
Does your Spring application take too long to start? Maybe this annotation could help you. This annotation indicates to Spring that a bean needs to…
Understanding @Autowired in Spring: A Comprehensive Guide
Introduction The @Autowired annotation is one of the most common annotations when working with Spring. Its objective is simple: to tell Spring to inject a…
12 Ways to Use the @Value Annotation in Spring for Flexible and Maintainable Applications
You may already be familiar with @Value annotation from Spring. This annotation allows you to inject some properties into your beans. But there’s a lot…
Specification-Based Testing: A Developer’s Secret Weapont
One quick story: I was adding a new feature that needed an API client created by another developer. The API required three inputs: ID, country…
How to test complex conditions with the MC/DC criteria
Introduction Have you needed help defining what to test when you encounter a complex condition in your code? Do you feel lazy when looking at…
How to make your test case easy to understand by using test naming conventions
Introduction A common problem developers have is how to write the test name. Most projects don’t follow a convention, making the test cases a real…