-
-
Notifications
You must be signed in to change notification settings - Fork 550
Spring 6 (Not Spring Boot) minimum swagger configuration #3106
-
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?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
Hi @kolegithubrepo, you may take reference from the attached project.
springdoc-demo.zip
Beta Was this translation helpful? Give feedback.
All reactions
-
🚀 1
-
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.
Beta Was this translation helpful? Give feedback.