Enable or Disable Embedded Tomcat with Profile in Spring Boot
1. Overview When we want to enable or disable the embedded Tomcat server in a Spring Boot application, we need to consider different approaches based on our application’s requirements. By default,...
View ArticleIntroduction to Objenesis
1. Introduction The object creation process in Java most often involves the constructor’s execution. However, in some cases, we may need to create objects without enforcing constructor logic. For...
View ArticleSet Multiple Headers at Once in Spring WebClient
1. Introduction In this tutorial, we’ll take a look at how to set multiple headers at once in Spring WebClient. WebClient is a class from Spring WebFlux that, in simple terms, enables both synchronous...
View ArticleJava Weekly, Issue 590
1. Spring and Java >> Markdown in Java Docs [blog.jetbrains.com] A detailed overview of how you can use Markdown to generate Javadocs and the IntelliJ support for rendering your documentation...
View ArticleIntroduction to Apache Kylin
1. Introduction Apache Kylin is an open-source OLAP engine built to bring sub-second query performance to massive datasets. Originally developed by eBay and later donated to the Apache Software...
View ArticleGenerate a Valid Expression From a String of Numbers to Get Target Number
1. Introduction In this tutorial, we’ll explore how to solve the problem of generating all valid expressions by inserting binary operators between the digits of a string. The resulting expression must...
View ArticleThread per Connection vs Thread per Request
1. Introduction In this tutorial, we’ll compare two commonly used server threading models: thread-per-connection and thread-per-request. First, we’ll define exactly what we mean by “connection” and...
View ArticleBuilding an AI Chatbot in Java With Langchain4j and MongoDB Atlas
1. Overview Chatbot systems enhance the user experience by providing quick and intelligent responses, making interactions more efficient. In this tutorial, we’ll walk through the process of building a...
View ArticleA Guide to RestFB
1. Introduction RestFB allows us to interact programmatically with Facebook services, such as retrieving user profiles, posting to pages, and handling authentication. In this tutorial, we’ll explore...
View ArticleGuide to Eclipse OpenJ9 JVM
1. Overview OpenJ9 is a high-performance, scalable, and flexible Java Virtual Machine. We can use it as a replacement for HotSpot in many Java applications. IBM originally developed it as part of its...
View ArticleHow to Map an Empty String to Null Using MapStruct
1. Overview In this tutorial, we’ll look at how to customize our MapStruct mappers to convert empty Strings into nulls. We’ll investigate several options, each offering varying levels of control and...
View ArticleJava Weekly, Issue 591
1. Spring and Java >> Writing Unit Tests With MockMvcTester: Returning a List as JSON [petrikainulainen.net] In this second post of his series on MockMvcTester, Petri Kainulainen demonstrates a...
View Article