controller扫描已controller为后缀的类

This commit is contained in:
shuzheng 2016-10-16 20:47:00 +08:00
parent 961be1c55d
commit d4a36c57b0
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 扫描controller -->
<context:component-scan base-package="**.controller" />
<context:component-scan base-package="**.*controller" />
<context:annotation-config />
<!-- 支持controller返回json -->