Development

Intellij stuck with indexing

My intellij 2023.2 continued to repeatedly index something and it was obvious that it was the same again and again. The typical suggestions to invalidate caches plus restart didn’t work. Then I found the suggestion to edit the custom properties file via Help > Edit Custom Properties and add the following: Taken from https://www.jetbrains.com/help/objc/configuring-file-size-limit.html this

Intellij stuck with indexing Read More »

Redis Testcontainer with Kotlin and Spring Boot

I found lots of samples for creating a redis testcontainer in Spring Boot tests. But none of them really worked. Below is a working base class with a sample. It is based on Spring Boot 3.1.2 and latest testcontainer version at time of writing (“org.testcontainers:testcontainers:1.18.3”). The testcontainer-redis versions were avoided on purpose because they were

Redis Testcontainer with Kotlin and Spring Boot Read More »

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 »