org.molgenis.omx
Class WebAppConfig
java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
org.molgenis.omx.WebAppConfig
- All Implemented Interfaces:
- org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
@EnableWebMvc
@EnableAsync
@ComponentScan(value="org.molgenis")
@Import(value={DatabaseConfig.class,org.molgenis.omx.OmxConfig.class,org.molgenis.elasticsearch.config.EmbeddedElasticSearchConfig.class,org.molgenis.dataexplorer.config.DataExplorerConfig.class,org.molgenis.search.SearchSecurityConfig.class})
public class WebAppConfig- extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
| Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter |
addArgumentResolvers, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, getMessageCodesResolver, getValidator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebAppConfig
public WebAppConfig()
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
- Specified by:
addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer- Overrides:
addResourceHandlers in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
configureMessageConverters
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
- Specified by:
configureMessageConverters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer- Overrides:
configureMessageConverters in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
databasePopulator
@Bean
public org.springframework.context.ApplicationListener<?> databasePopulator()
properties
@Bean
public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer properties()
mailSender
@Bean
public org.springframework.mail.javamail.JavaMailSender mailSender()
fileStore
@Bean
public FileStore fileStore()
applicationContextProvider
@Bean
public ApplicationContextProvider applicationContextProvider()
- Bean that allows referencing Spring managed beans from Java code which is not managed by Spring
- Returns:
viewResolver
@Bean
public org.springframework.web.servlet.ViewResolver viewResolver()
- Enable spring freemarker viewresolver. All freemarker template names should end with '.ftl'
freeMarkerConfigurer
@Bean
public org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer()
- Configure freemarker. All freemarker templates should be on the classpath in a package called 'freemarker'
multipartResolver
@Bean
public org.springframework.web.multipart.MultipartResolver multipartResolver()
Copyright © 2013. All Rights Reserved.