Reputation: 1
open api dependencies
spring boot version
I try to enable swagger openapi springdoc-openapi-ui:1.6.14 but unfortunately I can not make that, when i try to access http://localhost:8182/swagger-ui/ I get error 404. My question is should i change the version of spring boot ?
Upvotes: 0
Views: 2362
Reputation: 3899
You're importing Springdoc 1, which is only compatible with Spring Boot 2.
For Spring Boot 3, you need to use Springdoc 2.
The correct gradle import is:
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2")
Upvotes: 3