All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commerce.broadleaf-contentmanagement-module.3.0.15-GA.source-code.applicationContext-servlet-cms-contentClient.xml Maven / Gradle / Ivy

There is a newer version: 3.1.15-GA
Show newest version
<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.2.xsd">

    <!-- Note that this bean must be defined in both the servlet and non-servlet application contexts -->
    <bean id="blConfiguration" class="org.broadleafcommerce.common.config.RuntimeEnvironmentPropertiesConfigurer"/>

    <aop:config/>

    <!-- This resolver locates the "blStaticAssetView" ViewResolver using its bean name. -->
    <bean class="org.springframework.web.servlet.view.BeanNameViewResolver">
        <property name="order" value="1"/>
    </bean>

    <bean id="blStaticAssetView" class="org.broadleafcommerce.cms.web.file.StaticAssetView"/>

    <bean id="blStaticAssetViewController" class="org.broadleafcommerce.cms.web.file.StaticAssetViewController">
        <property name="assetServerUrlPrefix" value="${asset.server.url.prefix.internal}"/>
        <property name="viewResolverName" value="blStaticAssetView"/>
    </bean>

    <bean id="blStaticAssetURLHandlerMapping" class="org.broadleafcommerce.cms.web.BroadleafCmsSimpleUrlHandlerMapping">
        <!--  Before mvc:annotationdriven but after static content / resource filters -->
        <property name="order" value="-1"/>
        <property name="alwaysUseFullPath" value="true"></property>
        <property name="mappings">
            <map>
                <entry key="/**/${asset.server.url.prefix.internal}/**" value-ref="blStaticAssetViewController"/>
                <entry key="/${asset.server.url.prefix.internal}/**" value-ref="blStaticAssetViewController"/>
            </map>
        </property>
    </bean>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy