Skip to content

Commit

Permalink
默认swagger地址为/swagger-ui.html
Browse files Browse the repository at this point in the history
  • Loading branch information
shuzheng committed Jun 23, 2017
1 parent c768efd commit 5a967b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zheng-common/src/main/resources/springMVC-servlet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
<!-- 配置静态资源,不被DispatcherServlet处理,增加缓存时间10秒 -->
<mvc:resources mapping="/favicon.ico" location="/favicon.ico"/>
<mvc:resources mapping="/resources/**" location="/resources/" cache-period="10"/>
<mvc:resources mapping="swagger-ui.html" location="classpath:/META-INF/resources/"/>
<mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/"/>
<mvc:resources mapping="/swagger-ui.html" location="classpath:/META-INF/resources/"/>

<!-- 上传文件配置 20*1024*1024即20M resolveLazily属性启用是为了推迟文件解析,以便捕获文件大小异常 -->
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
Expand Down

0 comments on commit 5a967b5

Please sign in to comment.