No mapping found for HTTP request with URI [/test2/test/add.json] in DispatcherServlet with name 'dispatcher'

查看spring-mvc.xml中扫描包路径配置是否正确:

<!-- 扫描controller(controller层注入) -->
    <context:component-scan base-package="com.test.www.web.controller"/>


 

posted @ 2017-11-09 11:35  super超人  阅读(245)  评论(0编辑  收藏  举报