@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @ImportResource(locations={"classpath*:/blc-config/bl-*-applicationContext.xml","classpath*:/blc-config/site/bl-*-applicationContext.xml","classpath*:/blc-config/bl-*-applicationContext-servlet.xml","classpath*:/blc-config/site/bl-*-applicationContext-servlet.xml"}, reader=FrameworkXmlBeanDefinitionReader.class) public @interface EnableBroadleafSiteAutoConfiguration
Bootstraps Broadleaf customer-facing configuration XML for both servlet and non-servlet beans in use with a traditional MVC application. If you are deploying Broadleaf in a
REST-API-only capacity or any other way then this annotation is probably not for you, and instead just EnableBroadleafSiteRootAutoConfiguration
is sufficient. If you have a customized ServletContainerInitializer
with a servlet-specific ApplicationContext, this annotation should only be placed on an @Configuration class within
that servlet-specific . If this is not the case and no servlet-specific ApplicationContext exists in your
project and you are using Spring Boot, this can be placed on the @SpringBootApplication class.
Since this annotation is a meta-annotation for @ImportResource, this cannot be placed on a @Configuration class that contains an @ImportResource annotation.
This import utilizes the FrameworkXmlBeanDefinitionReader so that framework XML bean definitions will not
overwrite beans defined in a project.
EnableBroadleafSiteRootAutoConfiguration,
EnableBroadleafSiteServletAutoConfiguration,
EnableBroadleafAutoConfigurationCopyright © 2017. All rights reserved.