The Spring Framework has come a long way. Nowadays, it is way easier to start a Java project with the Spring Framework using Spring Boot. In the past, we used
Create Java Project Using Maven in Command Line
This post shows how to create a Java project with Apache Maven in the command line. The content may be old, and a myriad of people may already know how
Java Null Pointer Exception Processing With Try-Catch
In Java, we can handle exceptional events using the try-catch. But not all exceptions are the same. Java Null Pointer Exception processing requires using try-catch in a way that is
Java, XSLT, and XML with Namespaces
When a XML uses namespaces, they need to be declared and used in the .xsl file so that the javax.xml.transform.Transformer knows how to deal with various elements in the XML. This post demonstrates how to deal with namespaces when performing transformation from or on XMLs.
Trim String Values From Properties Files in Spring Boot
This post demonstrates how to trim string values from .properties files using SpringApplicationBuilder and a subclass of or anonymous class of StandardEnvironment supplied to the builder with overridden getProperty(String) and getProperty(String, String) methods.
Validate Properties Files At Startup in Spring Boot
A .properties file contains lines of string pair. Each string pair consists of a parameter name (called the key), and parameter value. This post is about how to validate the parameter value at the application startup.
Java 9 Stream filter, takeWhile, dropWhile methods
This post demonstrates how to use the new methods – takeWhile and dropWhile – of the Stream interface in Java 9 Jigsaw. We’ll touch briefly on Stream.filter(Predicate p) just to get comfortable before trying out the new methods.
Avoid NullPointerException with Stream.ofNullable in Java 9
This post demonstrates how to avoid NullPointerException in Java 9 when working with Stream and using the overloaded of metho
Java – 3 ways to implement a Generic Interface
A Generic Interface is an interface that makes use of formal type parameters. It uses Generics. There are 3 ways to implement a Generic Interface.
Java Formal Type Parameter Methods We Can Invoke
With Java Generics, we name Java Formal Type Parameter T, E, K, and V conventionally. If an instance of a Format Type Parameter, what available methods we can invoke on