How can I create a URL based on controller and action method in Spring MVC?

后端 未结 4 1527
情歌与酒
情歌与酒 2020-12-17 17:38

I am using Spring MVC 3.0

I have a guestbook.jsp page where I want to create a link that points to GuestBookController\'s login method.

This is a simple task

4条回答
  •  既然无缘
    2020-12-17 17:50

    For a long time I have thought about implementing something like this using CGLib proxies but was too lazy. It appears Spring HATEOS library will allow you to do it the proxy way I wnated to and variety of other ways.

提交回复
热议问题