java.lang.ClassNotFoundException: javax.annotation.PostConstruct

When upgrading to the latest tools and libraries in a Spring Boot application with OpenAPI code generator in place the OpenAPI Kotlin generator introduced jakarta.annotation:jakarta.annotation-api. But with this in place the application refused to start with something like org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat…Caused by: java.lang.IllegalStateException: …

java.lang.ClassNotFoundException: javax.annotation.PostConstruct Read More »

MS Teams on Apple silicon

Performance on MS Teams was very bad on M1 MacBooks compared to other applications. But Microsoft is working on a native osx-arm64 version which I installed. And I have to say that I am blown away from the speed improvement. It’s like day and night. If you’re interesting in trying out non released Teams versions …

MS Teams on Apple silicon Read More »

REST & JSON basics

For REST https://restfulapi.net/resource-naming/ is a very good source to start reading and a guideline for JSON can be found under https://google.github.io/styleguide/jsoncstyleguide.xml.

ArrayIndexOutOfBounds with Kotlin coroutines and Hibernate-Validator

I was trying to build a spring boot application based on spring spring-boot-starter-webflux which is based on kotlinx-coroutines-reactor. The API definition was done with OpenAPI-Generator with “kotlin-spring” generator and “spring-boot” library. Setting the configOptions useBeanValidation and reactive to true generates suspendable methods and uses webflux. And adding hibernate-validator allows to use bean validation for every …

ArrayIndexOutOfBounds with Kotlin coroutines and Hibernate-Validator Read More »