报错信息如下
2020-05-27 21:30:54,020 DEBUG [org.springframework.web.servlet.DispatcherServlet] - DispatcherServlet with name 'springMVC' processing POST request for [/DangDang_fuyage/user/login.do]
2020-05-27 21:30:54,024 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Looking up handler method for path /user/login.do
2020-05-27 21:30:54,025 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Did not find handler method for [/user/login.do]
2020-05-27 21:30:54,026 WARN [org.springframework.web.servlet.PageNotFound] - No mapping found for HTTP request with URI [/DangDang_fuyage/user/login.do] in DispatcherServlet with name 'springMVC'
2020-05-27 21:30:54,027 DEBUG [org.springframework.web.servlet.DispatcherServlet] - Successfully completed request
2020-05-27 21:30:54,028 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'sqlSessionFactory'
报错效果图
解决办法
检测Controller是否添加注解@Controller