Class 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 Detail

      • ServletMappingAutoConfiguration

        public ServletMappingAutoConfiguration()
    • 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