I'm trying to implement a spring boot rest documentation using springdoc-openapi. I use spring boot 3.0.0.
I add this dependency to my build.gradle:
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.0.2'
When I start my server and go to : http://localhost:8080/swagger-ui.html
or http://localhost:8080/v3/api-docs
I receive a 404 error. what am I doing wrong ?
- I followed the tutorial from www.baeldung.com : https://www.baeldung.com/spring-rest-openapi-documentation.
- I've seen that only springdoc v2 can be used with spring boot v3 : https://springdoc.org/v2/.
- I add
springdoc.enable-native-support=true
to my application.properties according to : Using Springdoc with Spring Boot 3 Native but I get this error from JetBrains : - I tried to change dependencies and googling but nothing changes, I can't get my documentation.