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

crafter.api-documentation.api-documentation-context.xml Maven / Gradle / Ivy

There is a newer version: 3.0.15
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (C) 2007-2013 Crafter Software Corporation.
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->

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


    <bean name="crafter.apidoc.properties"
          class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="fileEncoding" value="UTF-8"/>
        <property name="ignoreUnresolvablePlaceholders" value="true"/>
        <property name="locations">
            <list>
                <value>classpath:/crafter/api-documentation/api-documentation.properties</value>
                <value>classpath*:/crafter/extension/custom-api-documentation.properties</value>
            </list>
        </property>
    </bean>

    <mvc:resources mapping="/swagger-ui/**" location="/swagger-ui/" order="9"/>

    <!-- Enable scanning of spring @Configuration classes -->
    <context:annotation-config/>
    <context:component-scan base-package="com.mangofactory.swagger.configuration"/>
    <context:component-scan base-package="org.craftercms.commons.api.documentation"/>
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy