Development

Spring Boot log MDC

Spring Boot contains a quite nice configuration for logback with color coding and good readability. But it lacks logging MDC (Mapped Diagnostic Context) content. I tried around and found a way to append MDC to every logged line by setting the console pattern in my application.properties/yml under logging.pattern.console to Without any MDC set this adds

Spring Boot log MDC Read More »

Spring Boot Hibernate 2nd level cache with ehcache next to spring-cache with gradle build

It’s quite easy to mix up spring-boot-start-cache with 2nd level caching in hibernate. In this post I want to take down how to enable both and being able to run tests from within intellij and gradle (which isn’t the default if you just follow most tutorials). To have proper dependencies for this i added the

Spring Boot Hibernate 2nd level cache with ehcache next to spring-cache with gradle build Read More »