@Configuration @EnableWebMvc @PropertySource(value="classpath:sparklr.properties") public class WebMvcConfig extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
Modifier and Type | Class and Description |
---|---|
protected static class |
WebMvcConfig.ResourceConfiguration |
Constructor and Description |
---|
WebMvcConfig() |
addArgumentResolvers, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureHandlerExceptionResolvers, configurePathMatch, getMessageCodesResolver, getValidator
@Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer()
@Bean public ContentNegotiatingViewResolver contentViewResolver() throws Exception
Exception
@Bean public ViewResolver viewResolver()
public void configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer)
configureDefaultServletHandling
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
configureDefaultServletHandling
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
@Bean public SparklrController sparklrController(@Qualifier(value="sparklrService") SparklrService sparklrService)
@Bean public SparklrRedirectController sparklrRedirectController(@Qualifier(value="sparklrRedirectService") SparklrService sparklrService)
@Bean public FacebookController facebookController(@Qualifier(value="facebookRestTemplate") org.springframework.web.client.RestOperations facebookRestTemplate)
@Bean public SparklrServiceImpl sparklrService(@Value(value="${sparklrPhotoListURL}") String sparklrPhotoListURL, @Value(value="${sparklrPhotoURLPattern}") String sparklrPhotoURLPattern, @Value(value="${sparklrTrustedMessageURL}") String sparklrTrustedMessageURL, @Qualifier(value="sparklrRestTemplate") org.springframework.web.client.RestOperations sparklrRestTemplate, @Qualifier(value="trustedClientRestTemplate") org.springframework.web.client.RestOperations trustedClientRestTemplate)
@Bean public SparklrServiceImpl sparklrRedirectService(@Value(value="${sparklrPhotoListURL}") String sparklrPhotoListURL, @Value(value="${sparklrPhotoURLPattern}") String sparklrPhotoURLPattern, @Value(value="${sparklrTrustedMessageURL}") String sparklrTrustedMessageURL, @Qualifier(value="sparklrRedirectRestTemplate") org.springframework.web.client.RestOperations sparklrRestTemplate, @Qualifier(value="trustedClientRestTemplate") org.springframework.web.client.RestOperations trustedClientRestTemplate)
@Bean public ConversionServiceFactoryBean conversionService()
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addResourceHandlers
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
configureMessageConverters
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
Copyright © 2014. All rights reserved.