Question : spring boot example with swagger
Answered by : sparkling-skimmer-4wrqs80x0nz8
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("swagger-ui.html") .addResourceLocations("classpath:/META-INF/resources/"); registry.addResourceHandler("/webjars/**") .addResourceLocations("classpath:/META-INF/resources/webjars/");
}
Source : https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api | Last Update : Wed, 16 Dec 20