JAVA-31002 Upgrade spring-boot-swagger (#16244)

Co-authored-by: timis1 <noreplay@yahoo.com>
This commit is contained in:
timis1 2024-03-31 22:38:53 +03:00 committed by GitHub
parent a53feeeed3
commit ff723063a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 7 deletions

View File

@ -75,7 +75,7 @@
<module>spring-boot-ssl-bundles</module> <module>spring-boot-ssl-bundles</module>
<module>spring-boot-telegram</module> <module>spring-boot-telegram</module>
<module>spring-boot-springdoc</module> <module>spring-boot-springdoc</module>
<!-- <module>spring-boot-swagger</module>--> <!-- failing after upgrading to spring boot 3.2.x --> <module>spring-boot-swagger</module>
<!-- <module>spring-boot-swagger-2</module>--> <!-- failing after upgrading to spring boot 3. Swagger codegen yet not compatible?!--> <!-- <module>spring-boot-swagger-2</module>--> <!-- failing after upgrading to spring boot 3. Swagger codegen yet not compatible?!-->
<module>spring-boot-swagger-jwt</module> <module>spring-boot-swagger-jwt</module>
<module>spring-boot-swagger-keycloak</module> <module>spring-boot-swagger-keycloak</module>

View File

@ -10,9 +10,10 @@
<description>Module For Spring Boot Swagger</description> <description>Module For Spring Boot Swagger</description>
<parent> <parent>
<groupId>com.baeldung.spring-boot-modules</groupId> <groupId>com.baeldung</groupId>
<artifactId>spring-boot-modules</artifactId> <artifactId>parent-boot-3</artifactId>
<version>1.0.0-SNAPSHOT</version> <relativePath>../../parent-boot-3</relativePath>
<version>0.0.1-SNAPSHOT</version>
</parent> </parent>
<dependencies> <dependencies>
@ -30,6 +31,11 @@
<artifactId>springdoc-openapi-ui</artifactId> <artifactId>springdoc-openapi-ui</artifactId>
<version>${springdoc.version}</version> <version>${springdoc.version}</version>
</dependency> </dependency>
<dependency>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<version>${jakarta.ws.rs-api.version}</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
@ -82,6 +88,8 @@
<properties> <properties>
<swagger-maven-plugin.version>3.1.1</swagger-maven-plugin.version> <swagger-maven-plugin.version>3.1.1</swagger-maven-plugin.version>
<springdoc.version>1.7.0</springdoc.version> <springdoc.version>1.7.0</springdoc.version>
<jakarta.ws.rs-api.version>3.1.0</jakarta.ws.rs-api.version>
<start-class>com.baeldung.swaggerexample.SwaggerExampleApplication</start-class>
</properties> </properties>
</project> </project>

View File

@ -5,9 +5,9 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import javax.ws.rs.POST; import jakarta.ws.rs.POST;
import javax.ws.rs.Path; import jakarta.ws.rs.Path;
import javax.ws.rs.Produces; import jakarta.ws.rs.Produces;
@Api @Api
@Path(value="/hire") @Path(value="/hire")