Class VSpringWebConfig
- java.lang.Object
-
- io.vertigo.ui.impl.springmvc.config.VSpringWebConfig
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration @EnableVertigoSpringBridge @EnableWebMvc public class VSpringWebConfig extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer, org.springframework.context.ApplicationContextAware
-
-
Constructor Summary
Constructors Constructor Description VSpringWebConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers)
void
addFormatters(org.springframework.format.FormatterRegistry registry)
void
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
void
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
void
addReturnValueHandlers(List<org.springframework.web.method.support.HandlerMethodReturnValueHandler> handlers)
void
configureViewResolvers(org.springframework.web.servlet.config.annotation.ViewResolverRegistry registry)
STEP 3 - Register ThymeleafViewResolverorg.springframework.web.servlet.RequestToViewNameTranslator
customRequestToViewNameTranslator()
protected Set<String>
getCustomComponentNames()
protected String
getCustomComponentsPathPrefix()
protected List<Class<? extends VControllerInterceptorEngine>>
getVControllerInterceptorEngines()
protected boolean
isDevMode()
org.springframework.web.multipart.support.StandardServletMultipartResolver
multipartResolver()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
org.thymeleaf.spring5.SpringTemplateEngine
templateEngine()
org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver
templateResolver()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addCorsMappings, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
-
-
-
Method Detail
-
templateResolver
@Bean public org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver templateResolver()
-
templateEngine
@Bean public org.thymeleaf.spring5.SpringTemplateEngine templateEngine()
-
getCustomComponentsPathPrefix
protected String getCustomComponentsPathPrefix()
-
customRequestToViewNameTranslator
@Bean("viewNameTranslator") public org.springframework.web.servlet.RequestToViewNameTranslator customRequestToViewNameTranslator()
-
multipartResolver
@Bean public org.springframework.web.multipart.support.StandardServletMultipartResolver multipartResolver()
-
configureViewResolvers
public void configureViewResolvers(org.springframework.web.servlet.config.annotation.ViewResolverRegistry registry)
STEP 3 - Register ThymeleafViewResolver- Specified by:
configureViewResolvers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addFormatters
public void addFormatters(org.springframework.format.FormatterRegistry registry)
- Specified by:
addFormatters
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addArgumentResolvers
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers)
- Specified by:
addArgumentResolvers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addReturnValueHandlers
public void addReturnValueHandlers(List<org.springframework.web.method.support.HandlerMethodReturnValueHandler> handlers)
- Specified by:
addReturnValueHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
- Specified by:
addInterceptors
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
getVControllerInterceptorEngines
protected List<Class<? extends VControllerInterceptorEngine>> getVControllerInterceptorEngines()
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
- Specified by:
addResourceHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
isDevMode
protected boolean isDevMode()
-
-