Uncategorized

How to Replace Spring Dependency Management Gradle Plugin with a Version Catalog

Are you looking for a cleaner alternative to managing dependencies in your Spring projects? While the Spring Dependency Management Gradle Plugin offers convenience, it may sometimes lead to issues such as transitive dependency conflicts. Enter the version catalog—a more streamlined solution. Let’s dive into how you can replace the Spring Dependency Management Gradle Plugin with […]

How to Replace Spring Dependency Management Gradle Plugin with a Version Catalog 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 »