swagger openapi with spring security
pom.xml:
   <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-ui</artifactId>
            <version>1.3.9</version>
        </dependency>
        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-security</artifactId>
            <version>1.4.0</version>
        </dependency>
properties: 
springdoc:
    swagger-ui:
        path: /swagger-ui.html
    api-docs:
        enabled: true
        path: /v3/api-docs
then go to the url: http://localhost:8080/swagger-ui/index.html?configUrl=/v3/api-docs
and explore http://localhost:8080/v3/api-docs 
Комментарии
Отправить комментарий