Using Spring Boot is the fastest way to get up to speed in developing modern applications. But how do we create the initial codebase that works out of the box? There are three ways – by hand, the Spring Initialzr,
When we use an embedded in-memory H2 database with Spring Boot, we can access the data via H2’s web console. If we use Spring Security, we need to exclude the /h2-console URL from the authentication process. You also need to
This post demonstrates how to convert your Spring Boot web application to a deployable WAR file for Tomcat.
This post demonstrates how to use the @Conditional annotation which is the workhorse of Spring Boot’s automatic configuration. You may also use this technique in your own codes.
This post demonstrates how to create a simple SOAP-based Web Service with Kotlin.
This post shows how to use Java Stream Reduce with example codes. The idea of the reduce operation is the generation of a single result from a collection of values or objects. It is similar to the min and max operations
Although not a common scenario, some libraries return Iterators instead of Stream or Collection objects. Why? Because they can. If the Java libraries you are using have methods that return Iterator objects, this will show how to convert Iterator to
Handling dates (and time) is never easy and time-consuming. Moreover, its support by Java has been inadequate. If you find yourself longing for some libraries to ease the pain, go ahead because you are not alone. For pre-Java 8, one
This post shows sample Kotlin codes that use the Java 8 Date and Time API (java.time). Requirements These are Software applications used for this post. IntelliJ IDEA Ultimate 2016.3 The Community Edition may be enough but we have not tried
Group List items into Several Lists using Stream in Java 8 is easy. We have a list of Persons and we want to group them into Female, Male, Unknown list using Stream and Collectors in Java 8. PersonBean Below is