All Downloads are FREE. Search and download functionalities are using the official Maven repository.

handlebars.JavaSpring.libraries.spring-boot3.swaggerUiConfiguration.mustache Maven / Gradle / Ivy

There is a newer version: 1.0.55
Show newest version
package {{configPackage}};

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

{{>generatedAnnotation}}
@Configuration
public class SwaggerUiConfiguration implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/swagger-ui/").setViewName("forward:/swagger-ui/index.html");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy