Class ServletMappingAutoConfiguration
- java.lang.Object
-
- org.apache.camel.component.servlet.springboot.ServletMappingAutoConfiguration
-
@Configuration(proxyBeanMethods=false) @ConditionalOnProperty(name="camel.servlet.mapping.enabled", matchIfMissing=true) @ConditionalOnBean(type="org.apache.camel.spring.boot.CamelAutoConfiguration") @AutoConfigureAfter(name="org.apache.camel.spring.boot.CamelAutoConfiguration") @ConditionalOnWebApplication @EnableConfigurationProperties({ServletMappingConfiguration.class,org.springframework.boot.autoconfigure.web.servlet.MultipartProperties.class}) public class ServletMappingAutoConfiguration extends Object
Servlet mapping auto-configuration.
-
-
Constructor Summary
Constructors Constructor Description ServletMappingAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.component.servlet.ServletComponent
configureServletComponent(org.apache.camel.CamelContext camelContext)
Ensures the Camel Servlet component is automatic created if no custom exists.
-
-
-
Method Detail
-
configureServletComponent
@Lazy @Bean(name="servlet-component") @ConditionalOnMissingBean(org.apache.camel.component.servlet.ServletComponent.class) public org.apache.camel.component.servlet.ServletComponent configureServletComponent(org.apache.camel.CamelContext camelContext) throws Exception
Ensures the Camel Servlet component is automatic created if no custom exists.- Throws:
Exception
-
-