@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @ImportResource(locations={"classpath*:/blc-config/bl-*-applicationContext.xml","classpath*:/blc-config/site/bl-*-applicationContext.xml"}, reader=FrameworkXmlBeanDefinitionReader.class) public @interface EnableBroadleafSiteRootAutoConfiguration
Bootstraps Broadleaf root site configuration XML for only non-servlet beans. This can be placed on any @Configuration
class (except ones with additional @ImportResource) to make the core Broadleaf beans apart of the ApplicationContext.
Since this annotation is a meta-annotation for @ImportResource, this cannot be placed on a @Configuration class that contains an @ImportResource annotation.
Since this does not include any of the servlet-specific Broadleaf beans, this is generally only used when you are not running in a
servlet environment at all or there is a parent-child relationship between a root ApplicationContext and you want to
configure multiple servlets that share much of the same beans. In general, rather than create multiple servlets with shared
configuration you should instead create separate deployments and utilize EnableBroadleafSiteAutoConfiguration in a single place.
This import utilizes the FrameworkXmlBeanDefinitionReader so that framework XML bean definitions will not
overwrite beans defined in a project.
EnableBroadleafSiteAutoConfiguration,
EnableBroadleafAutoConfigurationCopyright © 2017. All rights reserved.