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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers) voidaddFormatters(org.springframework.format.FormatterRegistry registry) voidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) voidaddResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) voidaddReturnValueHandlers(List<org.springframework.web.method.support.HandlerMethodReturnValueHandler> handlers) voidconfigureViewResolvers(org.springframework.web.servlet.config.annotation.ViewResolverRegistry registry) STEP 3 - Register ThymeleafViewResolverorg.springframework.web.servlet.RequestToViewNameTranslatorprotected StringDefine prefix for custom components.protected List<Class<? extends VControllerInterceptorEngine>>protected booleanorg.springframework.web.multipart.support.StandardServletMultipartResolvervoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) org.thymeleaf.spring6.SpringTemplateEngineorg.thymeleaf.spring6.templateresolver.SpringResourceTemplateResolverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addCorsMappings, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
VSpringWebConfig
public VSpringWebConfig()
-
-
Method Details
-
templateResolver
@Bean public org.thymeleaf.spring6.templateresolver.SpringResourceTemplateResolver templateResolver() -
templateEngine
@Bean public org.thymeleaf.spring6.SpringTemplateEngine templateEngine() -
getCustomComponentNames
-
getCustomComponentsPathPrefix
Define prefix for custom components. Should be the module name : don't starts with /, ends with / Components must be put in : prefix+"/components/"+componentName- Returns:
- path prefix for custom components
-
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:
configureViewResolversin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addFormatters
public void addFormatters(org.springframework.format.FormatterRegistry registry) - Specified by:
addFormattersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addArgumentResolvers
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers) - Specified by:
addArgumentResolversin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addReturnValueHandlers
public void addReturnValueHandlers(List<org.springframework.web.method.support.HandlerMethodReturnValueHandler> handlers) - Specified by:
addReturnValueHandlersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
getVControllerInterceptorEngines
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) - Specified by:
addResourceHandlersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
isDevMode
protected boolean isDevMode()
-