@Configuration
public class AdminMvcConfig
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
Constructor and Description |
---|
AdminMvcConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) |
protected String |
getWelcomePagePath(org.springframework.boot.autoconfigure.web.WebMvcProperties mvcProperties)
Gets welcome page path basically from
WebMvcProperties.getStaticPathPattern() configuration
when pattern expression "*" is removed, for example static path pattern defines /console/**
and welcome page path will be resolved as /console/ . |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
addViewControllers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addViewControllers
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
protected String getWelcomePagePath(org.springframework.boot.autoconfigure.web.WebMvcProperties mvcProperties)
WebMvcProperties.getStaticPathPattern()
configuration
when pattern expression "*"
is removed, for example static path pattern defines /console/**
and welcome page path will be resolved as /console/
.mvcProperties
- as configuration forindex.html
will be loadedCopyright © 2018 Pivotal Software, Inc.. All rights reserved.