Willian Ferreira Moya

Willian Ferreira Moya @tiuwill

About: Helping Java Spring developers to improve their applications so they can have less headache detecting problems in production.

Location:
Uberlândia, MG, Brazil
Joined:
Jun 22, 2020

Willian Ferreira Moya
articles - 38 total

Spring Essentials: How to Use the @Bean Annotation for Custom Services

In our application, we have a lot of objects. These objects are components of our application. When...

Learn More 0 0Apr 29

Spring Framework Essentials: Understanding @ComponentScan

@ComponentScan is an annotation that tells Spring where to find classes annotated as Spring beans....

Learn More 1 0Apr 22

How to Use Spring's @Profile Annotation for Flexible Configurations

The @Profile annotation in Spring allows you to segregate configurations to be available only in...

Learn More 1 0Apr 15

What is @Component and How to Use It in Spring

What is @Component? @Component is a stereotype annotation from the Spring framework that...

Learn More 1 0Apr 10

How to Use the @Import Annotation in Spring Framework

The @Import annotation allows you to specify which configurations your Spring application should...

Learn More 1 0Apr 8

Method security with @Secured Annotation in Spring

This annotation provides a way to add security configuration to business methods. It will use roles...

Learn More 2 0Jul 11 '24

Using the @Lookup Annotation in Spring

The @Lookup annotation is an injection (like @Inject, @Resource, @Autowired) annotation used at the...

Learn More 4 0Jul 5 '24

@PreDestroy and @PostConstruct in Spring

These annotations are called at specific moments in the bean lifecycle. They allow you to define...

Learn More 3 0Jun 28 '24

@Resource: The Versatile Bean Injection Annotation for Jakarta EE and Spring

This annotation does bean injection, like the @Autowired and @Inject annotations. This annotation...

Learn More 2 0Jun 26 '24

Understanding the @DependsOn Annotation in Spring

Introduction to the @DependsOn Annotation This annotation tells Spring that the bean...

Learn More 4 0Jun 25 '24

Understanding @Primary in Spring

If you read my post about the @Qualifier annotation, you have noticed that defining two beans of the...

Learn More 3 0Jun 21 '24

Using @Qualifier to Resolve Bean Conflicts in Spring

When working on a Spring project, you might encounter a situation where you have multiple bean...

Learn More 7 0Jun 19 '24

How @AliasFor Simplifies Annotations usage in Spring

This annotation is an annotation that allows you to create an alias for an attribute in an...

Learn More 1 0Jun 14 '24

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...

Learn More 4 0Jun 12 '24

Understanding @Autowired in Spring: A Comprehensive Guide

Introduction The @Autowired annotation is one of the most common annotations when working...

Learn More 8 0Jun 11 '24

Understanding Spring's @Required Annotation: A Legacy Perspective

While the @Required annotation has been deprecated since Spring Framework 5, it's not uncommon to...

Learn More 3 0Jun 6 '24

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...

Learn More 4 0Jun 6 '24

Understanding Spring Annotations: A Comprehensive Overview

Introduction Working with Spring implies using lots of annotations to configure your...

Learn More 7 0Jun 5 '24

Simplifying Dependency Management with Spring IoC

Introduction Imagine writing an application where you have to create and manage...

Learn More 3 0Jun 4 '24

Why Spring Matters for Java Developers

Writing Java Applications in the Past When writing Java applications in the past, writing...

Learn More 4 1Jun 1 '24

Structural-Based Testing: A Simple Guide

When writing tests for your code, it's easy to miss some parts, which can lead to bugs. How can you...

Learn More 1 0May 27 '24

Specification-Based Testing: Devise test cases

This is the last part of the specification-based testing series. Now we are going to put all of the...

Learn More 0 0May 21 '24

Specification-Based Testing: Analyze boundaries

Another important step in specification-based tests is analyzing boundaries. Boundaries are a common...

Learn More 0 0May 20 '24

Specification-Based Testing: Exploring partitions

When we are testing our code, we can't only test things that will give us a successful return. Tests...

Learn More 0 0May 17 '24

Specification-based Testing: Explore the program

The third step of the specification-based test is to explore the program behavior. You can skip this...

Learn More 5 0May 16 '24

Specification-based Testing: Understand the requirements

Understanding the requirements is an important part of testing your code. If you already know the...

Learn More 1 0May 15 '24

Specification-Based Testing: A Developer’s Secret Weapon

One quick story: I was adding a new feature that needed an API client created by another...

Learn More 0 0May 14 '24

Friction: How Human Behavior Influences Code Development

Introduction Have you ever tried to start a gym routine, learn a new skill, or start a new...

Learn More 1 1May 7 '24

From Bugs to Brilliance: Enhancing Code Reliability Through Mutation Testing

Introduction Have you worked on a project with high test coverage? Ever wondered why,...

Learn More 0 0Apr 22 '24

Less Code, More Tests: Exploring Parameterized Tests in JUnit

Introduction Regarding writing tests, some developers are lazy writing fewer test...

Learn More 5 0Mar 6 '24