Author name: Manuel Bogner

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 »

Optimize JPEGs for web

While creating my new homepage on https://mbo.dev I was looking for a command line tool to optimise images. Best tool for the job seemed to be imagemagic in combination with mozjpeg. Here the command I used which brought the images down very very much: The quality may change but I couldn’t see the difference without

Optimize JPEGs for web 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 »