springfox Questions

4

Solved

Requirements: Spring Boot application with Springfox Add BASIC authentication to Swagger Pass on all other requests Code: implemented @EnableWebSecurity @Configuration public class SecurityCo...
Paulita asked 25/4, 2018 at 14:2

8

Solved

I'm trying to use SpringFox. Spring Boot version: 'org.springframework.boot:3.0.0-SNAPSHOT' build.gradle dependencies { ... implementation 'io.springfox:springfox-petstore:2.10.5' implementation ...
Raffo asked 20/3, 2022 at 18:42

1

I want my controller endpoints marked with @ApiOperation to come in a certain order in the Swagger spec. Tried to set position on @ApiOperation like this: @ApiOperation(value = "xxx", position = 1...
Courier asked 27/2, 2018 at 8:7

3

Solved

I'm working in a REST service made with spring-boot, which to this day is documented using springfox-swagger2:2.7.0 (implementation first). The last operation I've added looks like this: @ApiOpera...
Larrylars asked 3/9, 2018 at 10:35

5

Solved

I want to add a header parameter field in the auto-generated swagger ui documentation of my rest service. I use Spring and Springfox. public ResponseEntity<User> saveNewUser( @ApiParam(valu...
Reynolds asked 25/11, 2016 at 9:22

6

I'm trying to run my Spring boot application which is based on version 3.0 with swagger UI and I'm getting a lot of exceptions I have explored many sources like youtube and documentation but I'm un...
Sherrillsherrington asked 21/12, 2022 at 12:26

15

Solved

Using a fresh Spring Initialzr with Java17 and Spring Boot 3.0.0, and an extra addition to the pom.xml for Springfox Swagger 3, I can't for the life of me get Swagger pages to work. Instead, I get ...
Anatol asked 29/11, 2022 at 12:49

2

Solved

I've been trying to integrate swagger with spring boot. I used spring boot version 3.0.4 with springfox 3.0 Here's my pom.xml file springfox dependency and parent <parent> <groupId>org...
Administration asked 5/3, 2023 at 11:1

2

Solved

I want to document my project with swagger. I add swagger annotations and io.springfox dependencies to my project but when I run mvn clean package I have a lot of errors: PS D:\parent-project> ...
Hangdog asked 18/9, 2018 at 18:3

24

Solved

Following the instructions here: http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api I added these dependencies to my project: compile "io.springfox:springfox-swagger2:2.7.0" com...
Clovah asked 11/9, 2017 at 8:45

4

Trying to configure swagger in spring boot 2.3.1. Gradle Config repositories { mavenCentral() maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' } } dependencies { implementatio...
Lacilacie asked 6/7, 2020 at 11:24

2

I am using Swagger 2 with Springfox. When you click on an endpoint, is there any way to have the Try-it-out mode activated by default, without having to click this button:
Marionmarionette asked 3/5, 2019 at 8:4

16

Solved

My project has Spring Security. Main issue: Not able to access swagger URL at http://localhost:8080/api/v2/api-docs. It says Missing or invalid Authorization header. Screenshot of the browser win...
Paradox asked 7/6, 2016 at 5:25

7

I'm migrating a modular app into a microservices app using spring cloud, when I finished migrating a module into microservice and ran it, a problem came up saying : Correct the classpath of your a...
Tolland asked 23/6, 2020 at 17:10

2

Solved

I am building a Spring Boot application and documenting it using a Swagger UI using the Springfox Swagger UI. I've got everything documented, but want to customize the title and description but can...
Jerrilyn asked 9/11, 2017 at 19:20

6

Using Spring Boot 2.4.5 and IntelliJ 2021.2. After migrated <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version...
Peraza asked 14/9, 2021 at 2:24

35

I am using spring data rest for my application. I am getting following error and application doesn't get started when I add this method in repository:- Method:- @Modifying @Transactional @Query(...
Passifloraceous asked 25/10, 2016 at 13:50

8

Solved

Application was working with Springfox Swagger 3.0 few days back. Suddenly it is stopped working. The Jar file which was created before a week is still working but now when we try to build a new Ja...
Morganmorgana asked 7/7, 2020 at 10:28

15

I'm trying to initiate a Spring Boot project using OpenJDK 15, Spring Boot 2.6.0, Springfox 3. We are working on a project that replaced Netty as the web server and used Jetty instead, because we d...
Zoara asked 19/11, 2021 at 15:9

25

We have our Spring Boot services behind an API Gateway. With an earlier version of Springfox - 2.1.2 we had no issues in loading the swagger-ui.html page. This worked with Spring Boot 1.4.3.RELEASE...
Sybilsybila asked 7/3, 2018 at 15:20

6

I want to display two REST API endpoints in Swagger ui: /cart and /post. When I specify either /cart or /post works fine but with both showing me error as No operations defined in spec! in s...
Chamkis asked 11/5, 2018 at 11:26

3

I'm migrating from springfox to OpenAPI springdocs and I have to replace @ApiImplicitParam(allowMultiple=true) @ApiImplicitParam is replaced with @Parameter, but what is the OpenAPI springdoc equi...
Turanian asked 2/5, 2022 at 7:51

5

I have an API that has different consumers. I'd like them to get relevant documentation based on their roles in Spring Security. E.g API operation A is constricted to Role A and Role B API operatio...
Inflated asked 3/1, 2017 at 13:59

2

I am trying to add Swagger to my project https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api I got 4.3 paragraph in the tutorial above and when I run my application, I got some err...
Wellborn asked 8/2, 2021 at 17:57

3

Solved

@RequestMapping(...) public Foo getFoo(@HeaderParam("header") final String header) { ... } Adding a @HeaderParam method parameter as above springfox picks it up and when I look at the swagger-ui...
Porcia asked 12/4, 2016 at 23:3

© 2022 - 2024 — McMap. All rights reserved.