No mapping found for HTTP request with URI [/brand/findAll.do] in DispatcherServlet with name 'sprin

No mapping found for HTTP request with URI [/brand/findAll.do] in DispatcherServlet with name 'springmvc'

一 原因: No mapping found

二 解决:

    1 .看请求的url与设置的requestMapping("/findAll")是否相同

    我的错误就在这里

      requestMapping("findALl")       l大写了

      url:    http://localhost:9101/findAll.do    而url中findAll是l小写的

 

   2. 看看注解扫描的包是否正确



你可能感兴趣的:(bug,bug)