
commerce.broadleaf-contentmanagement-module.3.1.6-GA.source-code.applicationContext-servlet-cms-contentClient.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- #%L BroadleafCommerce CMS Module %% Copyright (C) 2009 - 2013 Broadleaf Commerce %% Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. #L% --> <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 - 2025 Weber Informatics LLC | Privacy Policy