No mapping found for HTTP request with URI [/test2/test/add.json] in DispatcherServlet with name 'dispatcher'时间:2023-03-09 20:52:06 查看spring-mvc.xml中扫描包路径配置是否正确: <!-- 扫描controller(controller层注入) --> <context:component-scan base-package="com.test.www.web.controller"/>