Spring MVC with Front Controller

1.7k views Asked by At

I'm developing a web server using MVC with multiActionController. However, now I want to handle any request (/*) with a Front Controller. After that, this Front Controller will forward this request to the View in ModelAndView. However, after many searches with Google, I still don't know how to implement it. I appreciate your help.

1

There are 1 answers

0
Japan Trivedi On

In that case you need to have a controller class defined with the annotation @RequestMapping("/") and one function which will catch the GET request for the same mapping and from that function you can return whatever model and view you want to return.

Hope this helps you.

Cheers.