Skip to content

spring/sesiones_7_8_9 #9

Description

@sharonOstrovsky

Las versiones mas actuales de Spring no son compatibles con la forma de utilizar Swagger.

Se soluciona cambiando la dependencia:

<dependency>
		<groupId>io.springfox</groupId>
		<artifactId>springfox-boot-starter</artifactId>
		<version>3.0.0</version>
</dependency>

por las siguientes dependencias:

<dependency>
		<groupId>org.springdoc</groupId>
		<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
		<version>2.0.0</version>
</dependency>

<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-validation</artifactId>
</dependency>

Y agregando en application.properties la siguiente linea:

springdoc.swagger-ui.path=/swagger-ui.html

Con esto ya no es necesario la carpeta Config con la clase SwaggerConfig

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions