Package gdv.xport.srv.config
Class SwaggerConfig
java.lang.Object
gdv.xport.srv.config.SwaggerConfig
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
public class SwaggerConfig
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Ueber diese Klasse wird Swagger aktiviert. Die Doku dazu stammt aus
Springfox Reference Documentation.
- Since:
- 3.0 (20.02.2017)
- Author:
- oboehm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResourceHandlers
(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) void
addViewControllers
(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) io.swagger.v3.oas.models.OpenAPI
api()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
SwaggerConfig
public SwaggerConfig()
-
-
Method Details
-
api
@Bean public io.swagger.v3.oas.models.OpenAPI api() -
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) - Specified by:
addResourceHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addViewControllers
public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) - Specified by:
addViewControllers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-