In my case, after going through the solution provided in https://stackoverflow.com/a/78723412/29458628 ; i was able to access swagger and /v3/api-docs with urls - http://localhost:8080/swagger-ui/index.html and http://localhost:8080/v3/api-docs
I use Springboot 3.3.8 / java 17
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.6.0</version>
</dependency>