-
Enterprise Java

Fix Cannot Load Driver Class: com.mysql.jdbc.driver in Spring Boot
1. Introduction The “can not find driver exception” with “com.mysql.jdbc.driver" means that the Spring Boot application can not load the…
Read More » -
Java

@Context Complex Source Mappings Example
1. Introduction The org.mapstruct.Context annotation from MapStruct, a Java annotation processor for generating type-safe bean mapping code, marks a parameter…
Read More » -
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 »





