Вот моя Java-версия:
Код: Выделить всё
> java --version
openjdk 23 2024-09-17
OpenJDK Runtime Environment (build 23+37-2369)
OpenJDK 64-Bit Server VM (build 23+37-2369, mixed mode, sharing)
Код: Выделить всё
4.0.0
com.mahesha999
spring-boot-postgres
0.0.1-SNAPSHOT
org.springframework.boot
spring-boot-starter-parent
3.2.0
23
org.springframework.boot
spring-boot-starter-data-jpa
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-devtools
true
org.springdoc
springdoc-openapi-starter-webmvc-ui
2.6.0
Код: Выделить всё
http://localhost:8080/swagger-ui/index.html
http://localhost:8080/swagger-ui.html
http://localhost:8080/swagger-ui/
http://localhost:8080/v3/api-docs
[img]https://i .sstatic.net/JpJfIBP2.png[/img]
Я пробовал некоторые другие зависимости Swagger, доступные в Интернете, но безуспешно. Как я могу заставить пользовательский интерфейс Swagger работать с моей версией Java и Spring Boot? Или мне нужно самостоятельно изменить версии загрузки Java и/или Spring? Нужно ли мне указывать контекстный путь, как указано здесь?
Подробнее здесь: https://stackoverflow.com/questions/789 ... ing-boot-3
Мобильная версия