Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Spring 6 (Not Spring Boot) minimum swagger configuration #3106

kolegithubrepo started this conversation in General
Discussion options

I've been struggling for some time to get Swagger working with a Spring 6 project. Can someone share a minimal working Swagger configuration for a Spring 6 (non–Spring Boot) MVC project (not JAX-RS), along with an explanation or setup guide?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Hi @kolegithubrepo, you may take reference from the attached project.
springdoc-demo.zip

You must be logged in to vote
1 reply
Comment options

Thank you, this is exactly what I was looking for. It’s nice to see that Spring 6(not spring boot) still works with the latest springdoc-openapi-starter-webmvc-ui version. Some tricks must be used to add a custom Swagger Servlet mapping. I’ll also add an explanation for it when I find more time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /