How to Enable All Endpoints in Spring Boot Actuator
1. Overview In this tutorial, we're going to learn how to enable all the endpoints in the Spring Boot Actuator. We'll start with the necessary Maven dependencies. From there, we'll look at how to...
View ArticleCommon Shortcuts in IntelliJ IDEA
1. Overview This article looks at the keyboard shortcuts that we need to edit, build, and run Java applications in JetBrains' Java IDE, IntelliJ IDEA. Keyboard shortcuts save us time because we can...
View ArticleSpring Boot With JavaServer Pages (JSP)
1. Introduction When building Web Applications, JavaServer Pages (JSP) is one option we can use as a templating mechanism for our HTML pages. On the other hand, Spring Boot is a popular framework we...
View ArticleBackpressure Mechanism in Spring WebFlux
1. Introduction Spring WebFlux provides Reactive Programming to web applications. The asynchronous and non-blocking nature of Reactive design improves performance and memory usage. Project Reactor...
View ArticleTLS Setup in Spring
1. Overview Secure communication plays an important role in modern applications. Communication between client and server over plain HTTP is not secure. For a production-ready application, we should...
View ArticleRSA in Java
1. Introduction RSA, or in other words Rivest–Shamir–Adleman, is an asymmetric cryptographic algorithm. It differs from symmetric algorithms like DES or AES by having two keys. A public key that we can...
View ArticleIntroduction to Alibaba Sentinel
1. Overview As the name suggests, Sentinel is a powerful guard for microservices. It offers features like flow control, concurrency limiting, circuit breaking, and adaptive system protection to...
View ArticleUsage of the Hibernate @LazyCollection Annotation
1. Overview Managing the SQL statements from our applications is one of the most important things we need to take care of because of its huge impact on performance. When working with relations between...
View ArticleJava Weekly, Issue 380
1. Spring and Java >> MergingSortedSpliterator [javaspecialists.eu] Writing our very own Spliterator to convert List<Stream<T>> to a Stream<T> with sorted elements. Cool stuff!...
View ArticleJava NIO DatagramChannel
1. Overview In this tutorial, we'll explore the DatagramChannel class that allows us to send and receive UDP packets. 2. DatagramChannel Among various protocols supported on the internet, TCP and UDP...
View ArticleService Mesh Architecture With Istio
1. Introduction In this tutorial, we'll go through the basics of service mesh architecture and understand how it complements a distributed system architecture. We'll primarily focus on Istio, which is...
View ArticleDifference Between “expose” and “publish” in Docker
1. Overview In Docker, it's important to know which ports a containerized application is listening on. We also need a way to access the application from outside the container. To address those...
View ArticleLooking for a Java Developer with Spring Experience (Remote) (Part Time)
Who? I'm looking for a Java developer with extensive Spring experience. On the non-technical side – a good level of command over the English language is also important. The Work You're going to be...
View ArticleConvert a Java Enumeration Into a Stream
1. Overview Enumeration is an interface from the first version of Java (JDK 1.0). This interface is generic and provides lazy access to a sequence of elements. Although there are better alternatives in...
View ArticleSpring Bean Names
1. Overview Naming a Spring bean is quite helpful when we have multiple implementations of the same type. This is because it'll be ambiguous to Spring to inject a bean if our beans don't have unique...
View ArticleJava Weekly, Issue 381
1. Spring and Java >> JDK Mission Control 8 Released [infoq.com] The new version of JMC gives us even more insights from running JVM applications. >> Microsoft Introduces Microsoft Build of...
View ArticleDisplaying Error Messages with Thymeleaf in Spring
1. Overview In this tutorial, we'll see how to display error messages originating from a Spring based back-end application in Thymeleaf templates. For our demonstration purposes, we'll create a simple...
View ArticleThe package-info.java File
1. Overview In this tutorial, we're going to understand the purpose of package-info.java and how it is useful. Simply put, package-info is a Java file that can be added to any Java package. 2. Purposes...
View ArticleGuide to Setting Up Apache Kafka Using Docker
1. Overview Docker is one of the most popular container engines used in the software industry to create, package, and deploy applications. In this tutorial, we'll learn how to do an Apache Kafka setup...
View ArticleUsing Watch with the Kubernetes API
1. Introduction In this tutorial, we'll continue to explore the Java Kubernetes API. This time, we'll show how to use Watches to efficiently monitor cluster events. 2. What are Kubernetes Watches? In...
View Article