Skip to main content

You are currently viewing the Trifork Blog, to view our full website please go to Trifork.com

Handling nested exceptions with a catch-all fallback in Spring-MVC

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 […]

Getting out of a codependent relationship, or: how I moved to a healthy component-based Spring Security configuration

Holding Hands Together

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 […]

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 […]

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: […]