529 questions
Score of 2
1 answer
211 views
RouterFunction<ServerResponse>: "Non-null type argument is expected"
What does it want from me? How do I make sure I get no warning without suppressing it?
Non-null type argument is expected
import org.springframework.web.reactive.function.server.RouterFunction;
...
Score of 3
1 answer
89 views
Swagger UI endpoint not exposed
I specified a custom Swagger UI endpoint.
springdoc:
swagger-ui:
path: /swagger-ui
However, I get 404 when hitting it from my browser:
http://localhost:8080/swagger-ui
2026-05-08T20:00:23.390+...
Score of 1
1 answer
232 views
How do I use an Object as a filter in a native JPA query?
I have a native query that takes 4 (optional) parameters for filtering. 4 is a bit too many for readability, so I was looking into replacing it with an object. I encountered two separate problems ...
Score of 0
1 answer
75 views
.yaml not added to group URL
When I change the property springdoc.swagger-ui.url to contain the .yaml extension, for example /v3/api-docs.yaml, I expect the URLs of the defined groups to include it as well.
For example, with the ...
Score of 0
2 answers
238 views
Springdoc 2.8.15 and Spring Boot 3.5.11 not working together
I have Springdoc 2.8.15 and Spring Boot 3.5.11 running. The API spec is generated correctly as long as I don't use the @Parameter and @OpenApiDefinition annotations. If I use one of them I get an ...
Score of 2
1 answer
82 views
What is the purpose of springdoc.group-configs[_].display-name if Swagger UI derives the group display name from SwaggerUrl instead
I'm trying to understand the relationship between groups and URLs in Springdoc.
For example, we might have the following Springdoc configuration:
springdoc.swagger-ui.urls[0].url=${springdoc.swagger-...
Score of 0
0 answers
142 views
Creation of semi-duplicate definitions leads to display problems (problem became visible when transitioning from springdoc 1.6.13 to springdoc 2.8.14)
When a Spring Boot application using springdoc-openapi-{common, ui, web-code, ...}:1.6.13 starts, it invokes the SwaggerWelcomeWebMvc class and later AbstractSwaggerWelcome, where ...
Score of 6
1 answer
1928 views
ConventionErrorViewResolver bean conflict with springdoc-openapi-starter-webmvc-ui 3.0.1
I am setting up OpenAPI doc in spring-boot on one of my projects.
Every time I try to run my project with the following dependency:
<dependency>
<groupId>org.springdoc</groupId>
...
Score of 0
0 answers
95 views
Issues with polymorphis in Swagger (springdoc) in Spring Boot after upgrading to 3.5
I have created a very simple demo project with one controller endpoint:
Spring Boot 3.5.6
Springdoc 2.8.13
This was working much better in Spring Boot 2.7.x
Full project here: https://github.com/...
Score of 1
1 answer
88 views
springdoc ignores @Parameter(hidden = true) on @QuerydslPredicate
I am using springdoc 2.8.13 with Spring Boot and QueryDSL.
Here’s a controller endpoint that accepts a QueryDSL predicate:
@GetMapping("/users")
public ResponseEntity<?> users(
@...
Score of 1
3 answers
710 views
Configure OpenAPI custom info object with Springdoc
I have a Spring Boot application where I use OpenAPI to document my API's. Everything works as expected except I'm not able to configure a custom info object of the v3/api-docs. This is my code:
...
Score of 0
0 answers
70 views
Groovy/Grails Ambiguous mapping error with springdoc swagger
This is my controller
package example.infra.adapters.input.api.v1.endpoints
import example.aplication.services.authentication.LoginAuthenticator
import example.aplication.dtos.authentication....
Score of 1
1 answer
120 views
CSRF acting strange with springdoc in stateless service
Let's consider that I have a stateless service with an authentication mechanism that makes the browser automatically send the credentials which then makes even a stateless service vulnerable. I want ...
Score of 0
1 answer
121 views
Petstore Swagger UI is being loaded while springdoc openapi integration with SpringMVC (non boot) application
I am trying to integrate SpringDoc in my Spring MVC application (non SpringBoot), but every time I try to access the UI, its loading petstore swagger UI.
I am using Spring webmvc 5.3.39 version and ...
Score of 1
0 answers
115 views
Hide parameter in Swagger doc but keep it for OpenAPI jar generation
I have a situation where I would like to not see a HTTP method parameter in the Swagger UI documentation, but still have it generated in my method signature by OpenAPI Java client generation.
I tried ...