@Controler注解未生效报No mapping found for HTTP request with URI 错误

                查看一下Web.xml文件中是否配置了<mvc: annotation-driven />,如果没有配置,添加上即可

              之所以报No mapping found for HTTP request with URI的错误是由于框架没有对应的请求路径与之匹配,原因可能是由于加上@controler的类根本没有被解析,而<mvc: annotation-driven />是使用@Controler注解所必需的。

猜你喜欢

转载自blog.csdn.net/xiongmaodeguju/article/details/74231665