Learn what the double precision issue is, how it affects code, and how to deal with it.
Also find me here:
Baeldung Author
Ana Peterlić
I am a Java Software Engineer with over 5 years of experience in designing and developing software solutions.
Here's what I've written (so far):
Baeldung on Java
- All
- Spring (3)
- Persistence (3)
- Testing (2)
- REST (2)
- Java (2)
- Spring Web (1)
- Spring MVC (1)
- Security (1)
- Maven (1)
- Java Numbers (1)
- Java Concurrency (1)
- Jackson (1)
- JVM (1)
Check if Certificate Is Self-Signed or CA-Signed With Java
Filed under Security
Learn how to determine if a certificate is self-signed or signed by a trusted Certificate Authority (CA).
Unit Testing of System.in With JUnit
Filed under Testing
Learn how to test user input scenarios using System.in with JUnit 4 and JUnit 5.
Asserting Equality on Two Classes Without an equals() Method
Filed under Testing
Learn a few ways of testing for the equality of two objects without the equals() method.
Why Is Field Injection Not Recommended?
Filed under Spring
Understand why field injection isn’t recommended and what alternative approaches we can use.
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 Persistence
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
Filed under Jackson
Learned the differences between the @JsonIgnore and @Transient annotations and understand when to use them.
Type Parameter vs Wildcard in Java Generics
Filed under Java
A detailed explanation about generics, how and when to use type parameters, and when wildcards are more appropiate.
Getting Started with Blaze Persistence
Filed under Persistence
A brief introductory guide to the Blaze criteria API reviewing the basic parts of queries and also how to use views.
Send Array as Part of x-www-form-urlencoded Using Postman
Filed under REST, Spring Web
How to send array data using x-www-form-urlencoded via Postman.
Difference Between Class.getResource() and ClassLoader.getResource()
Filed under Java
Learn the difference between the Class.getResource and ClassLoader.getResource methods.
@Operation vs @ApiResponse in Swagger
Uses and differences between @ApiOperation and @ApiResponse.
Maven Snapshot Repository vs Release Repository
Filed under Maven
Learn how to use Maven snapshots and releases, and the differences between them.