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 Details

    • ServletMappingAutoConfiguration

      public ServletMappingAutoConfiguration()
  • Method Details

    • 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