Questions tagged [springfox]
The Springfox suite of java libraries is all about automating the generation of machine and human readable specifications for JSON APIs written using the spring family of projects.
springfox
798
questions
0
votes
0
answers
38
views
Springfox - Swagger UI - "Unable to infer base url...or when the API is behind an API Gateway" - error with ipv6 host, for ipv4 swaggerui works fine
When I try to access https://my-ipv4-adress/api/swagger-ui/index.html , it works perfectly fine for me. However, when I try to access https://my-ipv6-address/api/swagger-ui/index.html , I get a popup ...
0
votes
0
answers
57
views
spring boot 2.7.18: Failed to start bean 'documentationPluginsBootstrapper'
I am trying to migrate sprintboot from 2.0.4 to 2.7.18. I have also updated java version to 21 from 8.
io.springfox dependencies are at 2.8.0
<dependency>
<groupId>io.springfox&...
0
votes
0
answers
48
views
Swagger-UI not displaying request body model
I'm using Springfox swagger-ui (2.8.0). I'm unable to display request body model in Swagger UI as the datatype of request body is not specified in method definition. Request body object is mapped to ...
0
votes
1
answer
43
views
Encountered Whitelabel Error Page when accessing http://localhost:8080/swagger-ui/index.html
I am learning how to use Swagger 3 in Spring Boot 3.25. I can access http://localhost:8080/rad and test data is available.
My dependencies
<dependencies>
<dependency>
...
0
votes
0
answers
182
views
springdoc-openapi-ui doesn't work with an application using Spring 6 and not Spring Boot
Recently, I have upgraded my application from Spring 5 to Spring 6. I am not using Spring Boot in my application due to legacy issues.
For API documentation, I was using SpringFox earlier but after ...
0
votes
0
answers
21
views
How to hide type of model in swagger with springfox?
I have rest controller and method below
@PostMapping(value = /createNewCredit, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<NewCreditResponse> createNewCredit(
@...
1
vote
2
answers
211
views
Springfox 2.5.0 is not working with Spring 5.3.31
While upgrading the Spring version, io.springfox : springfox-swagger2:2.5.0 & io.springfox : springfox-swagger-ui:2.5.0 are not working with spring 5.3.31. Swagger UI is not loading properly, ...
0
votes
1
answer
536
views
How to secure swagger UI with basic Authentication when using JWT Authentication
Dears
I am using spring fox with Spring Security. I have a custom JwrRequestFilter that extracts the jwt from the request and authenticates the user.
My issue is, that I need a basic popup ...
0
votes
0
answers
75
views
Model class is not reflecting example and description in Swagger UI
I have spring boot application where we are using swagger for documentation using spring-fox.
Issue is , in the swagger UI , model class is not showing the example and description , not sure what is ...
0
votes
0
answers
177
views
How to add example, schema and media type in java model using swagger annotation
I have to add the example, schema and media type (Application/JSON) in the API documentation using swagger annotation. I'm able to display the example and model in the swagger UI. however, in the ...
0
votes
0
answers
81
views
In SpringBoot, Springfox 3.0.0 ApiResponse Example is not shown when rest endpoint returns Object
I have a several Rest endpoints, and some of their return type is just "Object" instead of, for example ResponseEntity<Customer>
I'm trying to create swagger documentation using ...
1
vote
1
answer
1k
views
No mapping for GET /v3/api-docs | not able to use swagger in spring boot app
I have created a spring-boot application, for blogging application. while I try to use swagger in spring-boot app to create a document for all the APIs I have created.
The GET http://localhost:8080/v3/...
1
vote
2
answers
1k
views
Swagger and Spring MVC (non-spring-boot)
I've been trying to add Springfox-Swagger UI 3.0.0 into a regular Spring MVC application with Spring Security (non-spring-boot) and cannot figure it out. I recently incorporated swagger-ui into 2 ...
1
vote
0
answers
358
views
Getting Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
I am getting error:
Application run failed
org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang....
0
votes
1
answer
76
views
I can't log in to swagger. Unable to infer base url
Gives the following error. I don't use spring Security
tried different versions, rebuilt the project, no idea what the problem is
@Configuration
@EnableSwagger2WebMvc
public class SwaggerConfig {
@...