397 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
89
views
Can't set up OpenAPI for RestController in Spring Boot
I am trying to set up OpenAPI. My application uses port 9002 and every time I try to access http://localhost:9002/swagger-ui/index.html on the browser the server rejects my request with 403 code.
This ...
1
vote
1
answer
74
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 ...
0
votes
1
answer
108
views
ClassNotFoundException: org.springframework.web.servlet.resource.LiteWebJarsResourceResolver when running Spring Boot 3.3 best practices recipe
I am running org.openrewrite.java.spring.boot3.SpringBoot33BestPractices recipe of OpenRewrite on a Spring Boot v3.3.8 project that uses SpringDoc Api v2.6.0. OpenRewrite is upgrading correctly the ...
0
votes
1
answer
49
views
Specifying schema attributes descriptions
Can I describe schema attributes somehow, similar to how I can describe request parameters? In my case, I want to tell the clients that identifier means either a username, email, or phone. Obviously, ...
1
vote
1
answer
121
views
springdoc.swagger-ui.path property doesn't generate corresponding endpoint
It's extremely weird. I made no changes at all, and now suddenly spring-doc Swagger UI doesn't work.
First, I had this error.
Then, after updating the version of the artifact from 2.6.0 to 2.8.8, I ...
0
votes
1
answer
53
views
exclude spring-boot @AuthenticatedUser argument from swagger ui mask?
We have an old service that used to run on an older spring-boot version and springfox-swagger-ui. Everything worked fine there.
Since we've upgraded to spring-boot 2.7 and springdoc-openapi-ui 1.8.0, ...
0
votes
0
answers
14
views
Springdoc Mobile Compatibility
I have started using springdoc in java.
Everything works as expected but if i load the the webpage on mobile it is not compatible. The proportions do not look correct. I have investigated the ...
0
votes
0
answers
286
views
Springdoc Swagger UI 404 Issue with Version 2.5.0 and 2.8.6
I’m facing an issue with Springdoc in my Spring Boot app and could use some help. Here’s the situation:
When I use Springdoc version 2.5.0, everything works fine until I add a @ControllerAdvice to my ...
0
votes
0
answers
57
views
Spring Boot Maven Plugin does not pickup test properties or ansible properties for integration tests
I am trying to run openapi springdoc for my application for which I am using
<groupId>org.springdoc</groupId>`
<artifactId>springdoc-openapi-maven-plugin</artifactId>`
<...
0
votes
1
answer
171
views
Set up OpenAPI (Swagger) UI 3 in Spring Framework 6
Tried a few suggestions in existing stackoverflow discussions but I can't even get the html page to serve, and almost all information on the web uses Spring Boot instead, does anyone have an article, ...
0
votes
0
answers
91
views
I am using SpringDoc, version <= 2.6.0 with Spring Boot 3.x and getting following error while accessing http://localhost:8080/v3/api-docs
I am using SpringDoc, version <= 2.6.0 with Spring Boot 3.x and getting following error while accessing http://localhost:8080/v3/api-docs
There was an unexpected error (type=Internal Server Error, ...
0
votes
1
answer
309
views
Spring Boot: Combine multiple applications SwaggerUI?
Having about 6 Spring Boot applications with REST APIs running with Actuator and Prometheus support.
These are running on Docker, but the actuator port is not exposed.
Although we can connect each ...
0
votes
1
answer
1k
views
SpringDoc 2.8.0: Failed to introspect Class [SwaggerConfig] - IllegalStateException
After updating SpringDoc to version 2.8.0, my Spring Boot application fails to start with the following error:
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springdoc....
0
votes
0
answers
20
views
Point Springdoc Swagger-UI to customized YML
Having moved to springdoc openapi, the generated UI was very much different and not as comfortable. I'm currently working with a base.yml that creates several tags without their operations. Base.yml ...
3
votes
0
answers
49
views
How to display in swagger dynamically registered routes in a java webflux applicaiton?
I am creating a demo applicaiton where I register my endpoints dynamically using an endpoint registrar based on controller beans I have instanciated. Thus there are no annotations for the spring-doc ...