Learn how to make order agnostic comparison of lists when writing unit tests. >>>
Yearly Archives: 2020
Guide to ArrayStoreException
Learn the cause of ArrayStoreException, how to handle it, and best practices for avoiding it >>>
Gradle Source Sets
Learn a powerful way to structure source code in Gradle projects >>>
Testing Quarkus Applications
Learn how to write clean and powerful unit and integration tests for Quarkus applications. >>>
IllegalArgumentException or NullPointerException for a Null Parameter?
Explore the issue of which exception to throw when someone passes a null parameter to one of our methods: IllegalArgumentExcpetion or NullPointerException. >>>
Largest Power of 2 That Is Less Than the Given Number with Java
Learn how to find the largest power of 2 that is less than an input number. >>>
Introduction to keytool
Learn how to generate certificates with keytool. >>>
Customizing the Login Page for Keycloak
Learn how to change the default login page for Keycloak and add our customizations. >>>
Java Weekly, Issue 348
Kotlin 1.4 is out with lots of small yet useful features! Intriguing topics on GraalVM, Spring, Hibernate, and SQL. Also, more patterns to design distributed systems. >>>
Introduction to ArchUnit
ArchUnit is a library for checking the architecture of our Java code. Let’s explore it. >>>
How to Turn Off Swagger-ui in Production
The Swagger UI can be very helpful during development, but may be a security risk in production. We look at how to ensure it isn’t left accidentally available. >>>
Spring MVC Async vs Spring WebFlux
Learn about Spring Async and Spring WebFlux both theoretically and practically with a basic load test >>>
Reading a Line at a Given Line Number From a File in Java
Learn different ways of reading a line at a given line number inside a file >>>
Web Server Graceful Shutdown in Spring Boot
Learn how to take advantage of the new graceful shutdown feature in Spring Boot 2.3 >>>
Using application.yml vs application.properties in Spring Boot
Spring Boot supports both .properties and YAML. We explore the differences between injecting properties, and how to provide multiple configurations. >>>
Health Indicators in Spring Boot
Learn all about Health Indicators in Spring Boot. >>>
Leadership Election With Consul
Let’s see how Leadership Election with Consul helps to ensure data stability. >>>
Java Weekly, Issue 347
Efficient docker images for Spring Boot, lots of small upgrades for Spring, more patterns for distributed systems, and a historical take on date and time! >>>
NoSuchMethodError in Java
Let’s look at the java.lang.NoSuchMethodError and some ways to handle it. >>>
How to Define a Map in YAML for a POJO?
We’ll walk through how we can use properties defined in a YAML file to configure values for a Map in our POJO classes. >>>