Understand why field injection isn’t recommended and what alternative approaches we can use.
Also find me here:
Baeldung Author
Ana Peterlić
Ana is a freelance web developer with over six years of experience working with Java, Spring, and other related technologies. She enjoys helping and tutoring others. When she is not coding, she likes to spend her time reading books or traveling.
Here's what I've written (so far):
Baeldung on Java
- All
- Testing (6)
- Core Java (6)
- Spring (5)
- Persistence (3)
- Spring Web (2)
- REST (2)
- Java Numbers (2)
- Java Concurrency (2)
- Java (2)
- Jackson (2)
- JVM (2)
- JPA (2)
- Web Services (1)
- Spring MVC (1)
- Spring Boot (1)
- Security (1)
- Networking (1)
- Maven (1)
- Logging (1)
- Java Collections (1)
Is CompletableFuture Non-blocking?
Filed under Java Concurrency
Understand the scenarios when CompletableFuture is non-blocking and when it’s not.
Difference Between th:text and th:value in Thymeleaf
Filed under Spring MVC
Understand the differences between the th:text and th:value Thymeleaf attributes.
Remove Entity with Many-to-Many Relationship in JPA
Filed under JPA
A quick and practical guide to removing entity with many-to-many relationships in JPA.
UUID vs. Sequential ID as Primary Key
Filed under Persistence
A comparison between sequential IDs and UUIDs used as primary keys.
Getting the Current ApplicationContext in Spring
Filed under Spring
Learn how to get the current ApplicationContext in a Spring application.
Memory Types in JVM
Filed under JVM
Learn about the different memory types in the Java Virtual Machine (JVM) and understand the reasons for some common memory-related errors.
@JsonIgnore vs @Transient
Learned the differences between the @JsonIgnore and @Transient annotations and understand when to use them.
Type Parameter vs Wildcard in Java Generics
Filed under Core Java
A detailed explanation about generics, how and when to use type parameters, and when wildcards are more appropiate.
Baeldung on Computer Science
- All
- Math and Logic (1)
Check if a Binary Number Is Divisible by 3
Filed under Math and Logic
A quick tutorial to determine if a binary number is divisible by 3.