Author: jt

About jt

    A hidden feature of Spring AI is the support of String Templates, aka StringTemplates. StringTemplate is a lightweight Java template engine. It is simple, and easy to use. StringTemplate is a stable project, established in 2007 and now on its 4 major release. Here is an example from the homepage of the Stringtemplate website. On […]Continue reading

    Spring AI is the latest project from the Spring Team. Working with Large Language Models (LLMs) has traditionally been the domain of languages such as Python and Javascript. Spring AI is changing this and is enabling integration with generative AI with Java and Spring. In this post, we will take an initial look at using […]Continue reading

    JSON Logging in Spring Boot simplifies setup, especially for applications in distributed environments like Kubernetes. Consolidated logging requires searchable logs, often formatted in JSON. Logstash is a popular choice. A basic Logback configuration supports JSON logging, aiding development with profile flexibility. Testing can be done by generating log messages easily.

    Spring Boot Actuator is a sub-project of the Spring Boot Framework. It uses HTTP endpoints to expose operational information about any running application. The main benefit of using this library is that we get health and monitoring metrics from production-ready applications. Moreover, the gathering of metrics, understanding traffic, or knowing the state of the database, […]Continue reading

    MapStruct and Project Lombok are two tools which can make your life as a developer much easier. MapStruct is a slick project which generates type mappers via simple interfaces. You define an interface method to accept a source type with a return type. And MapStruct generates the implementation of the mapper. Project Lombok is a […]Continue reading

    The Need for Spring Boot Docker Layers If you follow my work, you know I’m a big fan of using Docker. As a software engineer at Velo Payments, I use Docker on a daily basis. Our architecture is primarily Spring Boot Microservices, deployed in Docker containers. This architecture gives us a tremendous amount of flexibility […]Continue reading

    A common question I get is “What is the best UI to use with a Spring Boot?” UIs, also known as “User Interfaces” come in many different flavors. The UI application might be a desktop application writing in Java Swing, FX, or some other technology. The UI application could also be a mobile application written […]Continue reading

    Should I Use Spring REST Docs or OpenAPI? Recently, I was asked which is better to use. Spring REST Docs or OpenAPI. From the perspective of generating documentation for your APIs, you may think these two options are effectively the same thing. But, it’s not exactly an apples to apples comparison. These are significantly different […]Continue reading