@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(value={ServletMappingConfiguration.class,org.springframework.boot.autoconfigure.web.servlet.MultipartProperties.class})
public class ServletMappingAutoConfiguration
extends Object
| Constructor and Description |
|---|
ServletMappingAutoConfiguration() |
| Modifier and Type | Method and 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.
|
@Lazy
@Bean(name="servlet-component")
@ConditionalOnMissingBean(value=org.apache.camel.component.servlet.ServletComponent.class)
public org.apache.camel.component.servlet.ServletComponent configureServletComponent(org.apache.camel.CamelContext camelContext)
throws Exception
ExceptionApache Camel