While the streams API provides a useful way to calculate the sum of some numeric types, BigDecimal is not support. Here we learn how to calculate sums with reduce.
Here's what I've written (so far):
Learn how to return HTML from a Spring MVC controller.
Learn about the significant differences between Spring’s ApplicationContext and BeanFactory with practical examples
A quick and practical guide to determining the day of the week in Java.
A preview of Kubernetes support coming to Spring Boot 2.3, and a handful of Google Cloud tools to help you build and deploy Spring Boot microservices.
Learn how to create a microservice application with Kotlin and Spring Boot.
Learn how to use Spring Security’s with ClearSiteDataHeaderWriter to add the HTTP Clear-Site-Data response header
Learn to fix the “constant string too long” build error in Java.
Learn how to prevent ApplicationRunner or CommandLineRunner beans from executing during JUnit tests.
Learn about Gradient Descent in Java and why backtracking is so important.
An overview of the RSocket request-stream messaging model, and a quick guide to writing a controller for Kubernetes clusters in Java using the Fabric8 API.
Learn the key differences between coarse-grained synchronization and fine-grained synchronization and how to implement them in Java.
Learn various ways to explore the filesystem of a Docker container
Learn about the Java IO and NIO libraries and how they differ.
Learn how to set up OAuth2 for a Spring REST API and how to consume that from an Angular client.
Learn how to set up a pre-configured embedded Keycloak server that can be booted up within a Spring Boot application.
Learn several methods how to achieve l-trim and r-trim in java.
IntelliJ can provide autocomplete and context help for custom properties, but we need to make some additional configuration to our project to enable that.
Comparison of JSON in its string representation is often less effective than comparing it semantically. Here we use Gson to load the JSON and compare the data.
A handful of tips for getting the most out of Java 14 with Spring, and a good overview of the RSocket protocol’s fire-and-forget messaging.