-
Java
Map an Empty String to Null Using MapStruct Example
1. Introduction An empty string (“”) is the String object with an intentional blank value. Null is a literal used…
Read More » -
Enterprise Java
Copy Specific Fields via Spring BeanUtils.copyProperties Example
1. Introduction In this example, I will demonstrate all the available methods to copy specific fields via BeanUtils.copyProperties in a…
Read More » -
Core Java
cURL Request to HTTP Request Conversion Example
1. Introduction The Client URL (cURL) is a tool for transferring data from or to a server using URLs. It…
Read More » -
Enterprise Java
WireMock with Spring Boot Example
1. Introduction WireMock is a powerful HTTP mock server that stubs and verifies HTTP requests. It provides a controlled test…
Read More » -
Core Java
Closing Scanner Java Example
1. Introduction The java.util.Scanner class can read input from System.in, File, InputStream, Path, Readable, String, etc. It implements the Closeable…
Read More » -
Software Development
Read an External Properties File in Maven
1. Introduction Reading external properties in a maven project is useful when accessing secure credential configuration, or logging settings, etc.…
Read More » -
Java
JDK_JAVA_OPTIONS vs JAVA_TOOL_OPTIONS
1. Introduction JDK_JAVA_OPTIONS and JAVA_TOOL_OPTIONS are environment variables used to pass Java Virtual Machine (JVM) options to configure the JVM…
Read More » -
Java
IntelliJ IDEA Include External JAR Example
1. Introduction IntelliJ IDEA is an integrated development environment (IDE) developed by JetBrains. Including external JAR is essential for various…
Read More » -
Core Java
PostgreSQL Hibernate 6 JSON Example
1. Introduction Hibernate 6 enhances the Object-Relational Mapping(ORM) framework by supporting JSON Data types. In this example, I will create…
Read More »