All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.airlenet.integration.webapp.ServletConfigBean Maven / Gradle / Ivy

The newest version!
package com.airlenet.integration.webapp;

import org.springframework.beans.factory.config.PlaceholderConfigurerSupport;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import com.airlenet.config.ConfigurationPropertyResourceConfigurer;
import com.airlenet.config.StaticConfigSupplier;
import com.airlenet.web.ServletSupport;

@Configuration
@ComponentScan(basePackages = { "com.airlenet" }, useDefaultFilters = false, includeFilters = {
		@Filter({ Controller.class }), @Filter({ ServletSupport.class }) }, nameGenerator = FullBeanNameGenerator.class)
@EnableWebMvc
public class ServletConfigBean {

	@Bean
	public static PlaceholderConfigurerSupport placeholderConfigurer() {
		return new ConfigurationPropertyResourceConfigurer(StaticConfigSupplier.getConfiguration());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy