question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spring boot V3.0.0 support

See original GitHub issue

Everything was running fine with Spring boot V2.7.5. However, once I upgraded to Spring boot V3.0.0. I can no longer view any docs under the usual paths (http://server:port/context-path/swagger-ui.html, http://server:port/context-path/v3/api-docs) and instead im getting a white label 404.

  • What version of spring-boot you are using?
  • V3.0.0
  • What modules and versions of springdoc-openapi are you using?
  • V1.6.13

Notes: setting the property log.level.web=trace shows the following when calling the previously mentioned endpoints:

TRACE | http-nio-8081-exec-1 | o.s.web.servlet.DispatcherServlet | GET "/v3/api-docs", parameters={}, headers={masked} in DispatcherServlet 'dispatcherServlet' TRACE | http-nio-8081-exec-1 | o.s.w.s.h.SimpleUrlHandlerMapping | Mapped to HandlerExecutionChain with [ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]]] and 3 interceptors DEBUG | http-nio-8081-exec-1 | o.s.w.s.r.ResourceHttpRequestHandler | Resource not found TRACE | http-nio-8081-exec-1 | o.s.web.servlet.DispatcherServlet | No view rendering, null ModelAndView returned. DEBUG | http-nio-8081-exec-1 | o.s.web.servlet.DispatcherServlet | Completed 404 NOT_FOUND, headers={masked}

TRACE | http-nio-8081-exec-3 | o.s.web.servlet.DispatcherServlet | GET "/swagger-ui.html", parameters={}, headers={masked} in DispatcherServlet 'dispatcherServlet' TRACE | http-nio-8081-exec-3 | o.s.w.s.h.SimpleUrlHandlerMapping | Mapped to HandlerExecutionChain with [ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]]] and 3 interceptors DEBUG | http-nio-8081-exec-3 | o.s.w.s.r.ResourceHttpRequestHandler | Resource not found TRACE | http-nio-8081-exec-3 | o.s.web.servlet.DispatcherServlet | No view rendering, null ModelAndView returned. DEBUG | http-nio-8081-exec-3 | o.s.web.servlet.DispatcherServlet | Completed 404 NOT_FOUND, headers={masked}

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bnasslahsencommented, Nov 28, 2022

@its-Saab, You are using wrong version. Please read the documentation before opening issues: image

@DManhHieu

I saw v2(https://github.com/springdoc/springdoc-openapi/releases/tag/v2.0.0) support Spring boot v3.0.0 but not find dependencies on maven repository You do not seem that you have searched:

@TomBeckett, See documentation:

1reaction
bnasslahsencommented, Nov 28, 2022

@DManhHieu,

You only need springdoc-openapi-starter-webmvc-ui. springdoc-openapi-starter-common is transitively coming from springdoc-openapi-starter-webmvc-ui

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Boot 3.0.0-RC1 available now
Hi, I generate a spring boot fresh project from https://start.spring.io with 3.0.0-RC1 and GraalVM native support. When I ran `.
Read more >
Spring Boot 3.0.0-RC2 available now
We're nearly there!! How can you help? If you're interested in helping out, check out the “ideal for contribution” tag in the issue...
Read more >
Preparing for Spring Boot 3.0
We are planning to release Spring Boot 3.0 in November 2022. This next major revision will be based on Spring Framework 6.0 and...
Read more >
Spring Boot 3.0.0-M4 available now
This release includes 161 enhancements, documentation improvements, dependency upgrades, and bug fixes. Notable new features include: Support ...
Read more >
Spring Boot 3.0.0-M1 is now available
We are planning to release a new milestone of Spring Boot 3.0 every two months. ... Does spring boot 3.0.0-SNAPSHOT support java 11?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found