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

com.capitalone.dashboard.config.WebMVCConfig Maven / Gradle / Ivy

package com.capitalone.dashboard.config;


import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;


@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "com.capitalone.dashboard.controller")
public class WebMVCConfig extends WebMvcConfigurerAdapter {

    /*
    Added for 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/");
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy