You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?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: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">
-
-
- <!--指明 controller 所在包,并扫描其中的注解-->
- <context:component-scan base-package="com.educoder.bridge.controller"/>
-
- <!-- 静态资源(js、image等)的访问 -->
- <mvc:default-servlet-handler/>
-
- <!--ViewResolver 视图解析器-->
- <!--用于支持freemarker视图解析-->
- <!--视图解释器 -->
- <bean id="viewResolver"
- class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver">
- <property name="suffix">
- <value>.ftl</value>
- </property>
- <property name="contentType" value="text/html;charset=UTF-8"></property>
- </bean>
-
-
- <!-- 开启注解 -->
- <mvc:annotation-driven/>
-
- <bean class="springfox.documentation.swagger2.configuration.Swagger2DocumentationConfiguration" id="swagger2Config"/>
- <mvc:resources location="classpath:/META-INF/resources/" mapping="swagger-ui.html"/>
- <mvc:resources location="classpath:/META-INF/resources/webjars/" mapping="/webjars/**"/>
-
- </beans>
|