Is there a way I can stop springfox swagger from scanning the model classes?

后端 未结 3 991
小鲜肉
小鲜肉 2021-01-05 08:38

I\'m currently using Springfox Swagger to document my spring boot application with a Java config. My API starts in about 75 seconds, (it was originally 20 secs without Sprin

3条回答
  •  生来不讨喜
    2021-01-05 09:24

    With swagger 3.0 @Hidden annotation is available which is present at package io.swagger.v3.oas.annotations

    It can be used on top of the class or method to exclude the resource in swagger documentation.

提交回复
热议问题