0
在應用程序中,我看我的調度XML發現這一點:需要驗證使用mvc定義處理程序映射的舊方法:註釋驅動?
<mvc:annotation-driven />
我是正確,這是定義的處理器映射(URL路由)的春季3路。一個在應用程序中的控制器是這樣的:
@Controller
@RequestMapping("/order")
@SessionAttributes(OrderController.ORDER)
public class OrderController
{
//...
我假定線
@RequestMapping("/order")
是這個URL路徑的處理程序映射的實際定義。
我是正確的是定義該處理程序映射的老辦法將是與之一:
BeanNameUrlHandlerMapping
SimpleUrlHandlerMapping
ControllerClassNameHandlerMapping
CommonsPathMapHandlerMapping
感謝您的文檔鏈接。 – 2010-07-27 16:06:51