Aref
Aref

Reputation: 1

Spring boot version 3.0.0 springdoc-openapi-ui dont work

open api dependencies

1

spring boot version

2

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

Answers (1)

Henning
Henning

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

Related Questions