Learn how to use the @Locked annotation introduced in Lombok to better support virtual threads.
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)
Mocking an Enum Using Mockito
Filed under Testing
Learn how to mock an enum using the Mockito library and understand the situations where this might be useful.
AccessFlag for Modifiers in Java Reflection
Learn about the JVM access flags and how to use them.
A Guide to @MockBeans
Learn how to use Spring’s @MockBeans annotation while defining mocks for testing.
Create an Instance of Generic Type in Java
Filed under Core Java
Understand why instantiating a generic type isn’t as straightforward as instantiating a class and explore several ways to create an instance of it.
Return Auto Generated ID From Insert With MyBatis and Spring
Filed under Persistence, Spring Boot
Learn how to return an auto-generated ID when inserting data using MyBatis and Spring Boot.
Get JSON Content as Object Using MockMVC
Filed under Jackson, Spring Web, Testing
Explore several ways to get JSON content as an object using MockMVC and Spring Boot.
Code Coverage vs. Test Coverage
Filed under Testing
A quick tutorial on the differences between code coverage and test coverage.
Logging With AOP in Spring
A quick tutorial on AOP logging with Spring.
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.