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

JavaSpring.libraries.spring-mvc.webApplication.mustache Maven / Gradle / Ivy

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

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

{{>generatedAnnotation}}
public class WebApplication extends AbstractAnnotationConfigDispatcherServletInitializer {

    @Override
    protected Class[] getRootConfigClasses() {
        return new Class[] { SwaggerUiConfiguration.class };
    }

    @Override
    protected Class[] getServletConfigClasses() {
        return new Class[] { WebMvcConfiguration.class };
    }

    @Override
    protected String[] getServletMappings() {
        return new String[] { "/" };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy