No mapping found for HTTP request with URI [/Springmvc/test] in DispatcherServlet with dispatche
程序员文章站
2022-07-15 13:25:05
...
第一种
在springmvc-config.xml即spring配置文件中
加上这样一句话`
<context:component-scan base-package="com.test.controllers" />
- 1
这里包名等需要注意是否写对。
我的情况是第二种,我的spring配置文件在src目录下,但是我的springmvc配置文件丢在了web-inf下,虽然没有报错,但是还是不能注入我的controller,.将两个配置文件放在一起
上一篇: No mapping found for HTTP request with URI [/app17a/] in DispatcherServlet with name 'springmvc'解决方法
下一篇: 到底是不是太胖了
推荐阅读
-
No mapping found for HTTP request with URI [/springmvc-1/springmvc/testParamsAndHeaders] in Dispatch
-
vue+No mapping found for HTTP request with URI [*//**] in DispatcherServlet with name ‘springMvc‘
-
异常记录二:寻求解决异常 !No mapping found for HTTP request with URI
-
如何解决“ No mapping found for HTTP request with URI [XXX] in DispatcherServlet with name 'XXX' ”
-
警告: No mapping found for HTTP request with URI [/springmvc-01/helloworld] in DispatcherServlet with
-
No mapping found for HTTP request with URI [/xxx/xxx] in DispatcherServlet with name 'xxx'
-
No mapping found for HTTP request with URI [...] in DispatcherServlet with name ‘DispatcherServlet‘
-
No mapping found for HTTP request with URI [***.html] in DispatcherServlet with name "***"
-
No mapping found for HTTP request with URI [/HelloWeb/] in DispatcherServlet with name 'HelloWeb...
-
No mapping found for HTTP request with URI [/app17a/] in DispatcherServlet with name 'springmvc'解决方法