META-INF.spring.application-context-core-api.xml Maven / Gradle / Ivy
<?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:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" 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"> <!-- Configures the annotation-driven Spring MVC Controller programming model. Note that, with Spring 3.0, this tag works in Servlet MVC only! --> <mvc:annotation-driven></mvc:annotation-driven> <!-- for app-engine add below lines for api docs <mvc:resources mapping="/api.html" location="api.html"/> <mvc:resources mapping="/webjars/**" location="/webjars/" /> --> <bean class="me.parakh.core.api.doc.SwaggerUiConfiguration"/> <mvc:view-controller path="/apidocs" view-name="swagger-ui.html" /> <!-- just for info <mvc:redirect-view-controller path="/home" redirect-url="/hello"/> <mvc:status-controller status-code="400" path="/detail"/> --> <!-- <bean class="me.parakh.core.api.doc.SwaggerUiConfiguration"/> -OR- <bean class="springfox.documentation.swagger2.configuration.Swagger2DocumentationConfiguration"></bean> <mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/"/> <mvc:resources mapping="swagger-ui.html" location="classpath:/META-INF/resources/"/> --> <context:component-scan base-package="me.parakh.core.api.endpoint"/> </beans>