@Configuration
@ComponentScan(basePackages={"de.digitalcollections.iiif.bookshelf.frontend.controller","de.digitalcollections.commons.springmvc.controller"})
@EnableAspectJAutoProxy
@EnableWebMvc
@PropertySource(value="classpath:de/digitalcollections/iiif/bookshelf/config/SpringConfigWeb-${spring.profiles.active:PROD}.properties")
@Import(value=de.digitalcollections.commons.springmvc.config.SpringConfigCommonsMvc.class)
public class SpringConfigWeb
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
| Constructor and Description |
|---|
SpringConfigWeb() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) |
void |
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) |
org.ocpsoft.prettytime.PrettyTime |
prettyTime() |
static org.springframework.context.support.PropertySourcesPlaceholderConfigurer |
propertySourcesPlaceholderConfigurer() |
org.thymeleaf.templateresolver.TemplateResolver |
servletContextTemplateResolver(org.springframework.context.ApplicationContext context) |
org.springframework.web.servlet.LocaleResolver |
sessionLocaleResolver() |
org.thymeleaf.spring4.SpringTemplateEngine |
templateEngine(org.thymeleaf.templateresolver.ServletContextTemplateResolver servletContextTemplateResolver) |
org.springframework.web.servlet.ViewResolver |
viewResolver(org.thymeleaf.spring4.SpringTemplateEngine templateEngine) |
addArgumentResolvers, addCorsMappings, addFormatters, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator@Bean public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer()
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigureraddResourceHandlers in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter@Bean public org.thymeleaf.templateresolver.TemplateResolver servletContextTemplateResolver(org.springframework.context.ApplicationContext context)
@Bean public org.thymeleaf.spring4.SpringTemplateEngine templateEngine(org.thymeleaf.templateresolver.ServletContextTemplateResolver servletContextTemplateResolver)
@Bean public org.springframework.web.servlet.ViewResolver viewResolver(org.thymeleaf.spring4.SpringTemplateEngine templateEngine)
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigureraddInterceptors in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter@Bean(name="localeResolver") public org.springframework.web.servlet.LocaleResolver sessionLocaleResolver()
@Bean public org.ocpsoft.prettytime.PrettyTime prettyTime()
Copyright © 2017. All rights reserved.