1. 程式人生 > >No mapping found for HTTP request with URI [/login.do] in DispatcherServlet with name 'spring'

No mapping found for HTTP request with URI [/login.do] in DispatcherServlet with name 'spring'

 No mapping found for HTTP request with URI [/account/login.do] in DispatcherServlet with name 'spring'

這個頭大的問題啊  最終還是找到了解決方案:

<!-- 啟動SpringMVC的註解功能,它會自動註冊HandlerMapping、HandlerAdapter、ExceptionResolver的相-->    
    <mvc:annotation-driven />

我們使用的jar不同,所以開啟註解的方式也不同,這個需要在首行寫