Closed
Description
Hans Desmet opened SPR-6475 and commented
The controller beans xml file contains:
<context:component-scan base-package="org.example.web"/>
<bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/>
The Controller class:
package org.example.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class ArticlesController {
@RequestMapping
("all") // all == a relative URL
public String findAll() {
return "/WEB-INF/JSP/allArticles.jsp";
}
}
Spring 2.5
A GET request with the URL /articles/all was processed by the function findAll
Spring 3.0 RC2
A GET request with the URL /articles/all produces HTTP 404 error.
Affects: 3.0 RC2
Issue Links:
- RC2: Issue with RequestMethod.GET differs from M2 [SPR-6378] #11045 RC2: Issue with RequestMethod.GET differs from M2 ("duplicates")