the problem is the compatibility between spring-boot and the springdoc-openapi. In your case the 2.1.0 version should work just fine. Btw check the compatibilty matrix here