io.swagger.jaxrs.config.DefaultJaxrsConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-all Show documentation
Show all versions of swagger-all Show documentation
swagger-all is a rebundled verison of Swagger as one OSGi bundle.
The newest version!
package io.swagger.jaxrs.config;
import javax.servlet.ServletConfig;
import javax.servlet.http.HttpServlet;
public class DefaultJaxrsConfig extends HttpServlet {
@Override
public void init(ServletConfig servletConfig) throws javax.servlet.ServletException {
super.init(servletConfig);
new SwaggerContextService().withServletConfig(servletConfig).initConfig().initScanner();
ReaderConfigUtils.initReaderConfig(servletConfig);
}
}