Answers for "swagger ui spring boot access"

3

spring boot example with swagger

@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/");
}
Posted by: Guest on December-09-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language