Skip to content

Commit c89bb71

Browse files
authored
Update spring-mvc.xml
修正扫描目录的错误
1 parent e21f1ad commit c89bb71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/spring-mvc.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
1010

1111
<!-- 扫描controller(controller层注入) -->
12-
<context:component-scan base-package="com.github.controller"/>
12+
<context:component-scan base-package="com.github.weixin.demo.controller"/>
1313

1414
<!-- 会自动注册DefaultAnnotationHandlerMapping与AnnotationMethodHandlerAdapter 两个bean,是spring MVC为@Controllers分发请求所必须的 -->
1515
<mvc:annotation-driven/>
@@ -79,4 +79,4 @@
7979
<!-- 默认首页 -->
8080
<mvc:view-controller path="/" view-name="index"/>
8181

82-
</beans>
82+
</beans>

0 commit comments

Comments
 (0)