As our last blog for the year, here’s a quick tip to improve the exception handling in your Spring-MVC applications! Cross-controller error handling using ControllerAdvice In a Spring-MVC web application it’s common to use a class annotated with @(Rest)ControllerAdvice to handle uncaught exceptions via @ExceptionHandler methods. This way it’s easy to produce different HTTP responses […]
Helm your way to Kubernetes with Spring Boot Admin
In this blog post I am experimenting with Helm, the package manager for Kubernetes by packaging codecentric’s Spring Boot Admin for out of the box real-time insights into a suite of Spring Boot Java services deployed to Amazon Elastic Kubernetes Service (EKS).
Getting out of a codependent relationship, or: how I moved to a healthy component-based Spring Security configuration
In a recent blog post, the Spring Security team announced that they’ll be deprecating the configuration setup where you subclass the WebSecurityConfigurerAdapter. Instead, you simply define beans that allow you to set up the SecurityFilterChain by calling methods on the HttpSecurity object, and configure the WebSecurity object using a configurer. These options have been available […]
The case of the lost id field
Chapter 1: a new case Morning arrived like a Windows Update you couldn’t postpone anymore, forcing you to accept a harsh new reality you didn’t ask for. As I biked by the Amstel river I wondered what the day would bring: I was visiting a client that was porting their old Spring-based monolith over to […]
Get the Inside Scoop on Trifork’s Podcasts!
We’re thrilled to announce our new series of blog posts based on our live Ask Me Anything (AMA) sessions! At Trifork, we often host renowned software experts as part of our collaborative initiative with GOTO Conferences. During these sessions, GOTO experts are invited to answer questions on topics related to programming and software. These subjects […]
Spring I/O 2019: a Trifork report
In 2010 I spoke at a new conference that Sergi Almar was organizing in Madrid about Spring. At that time it was mostly focused on Spanish attendees, and quite small. Over the years the conference grew larger and larger, moved to Barcelona and became the biggest community-driven Spring conference in Europe, and probably the world, […]
Top take-aways from TEQNation
Last week, on May 15, I had the pleasure of attending the TEQNation conference. While I had been to this NLJUG event before, it felt like my first time again. Not only because of the amazing new location—the industrial chic De Fabrique—also because it’s my first time attending as a budding programmer. Although, given the […]
Spring Framework: Becoming the source of modern Java
A retrospect with Trifork’s CTO of Enterprise Application Development Joris Kuipers It may be surprising to realise that it’s been 16 years since the Spring Framework was first released. From its beginnings as an inversion of control container shared with a tight-knit community, Spring has evolved to a fully-fledged ecosystem of its own. No longer […]
Retry functionality in a reactive programming context
Reactive programming can be used to solve a lot of different use cases. Forinstance, reactive programming can be really helpful for cases where timing is an issue. An example of such a case is retry logic with delay or backoff functionality. Let’s have a look at some different implementations using Project Reactor (https://projectreactor.io) for Java. […]
Managing Spring Boot Microservices with Spring Boot Admin on Kubernetes
In this blog: Prerequisites Introduction The top cool features we like and use most The service journal Overall View, what is deployed Change LOG levels DB migrations Creating an SBA Application Dependency configuration Spring Boot Admin Spring Boot Application Configuration of the Admin Application Summing up Running SBA on K8s Conclusion References Prerequisites Knowledge of: […]