on-internet
← Community

My controller returns ModelAndView but it doesn't load jsp

Stack Overflow ·

I'm studying the restful API. In this project, I wanna log-in using restful API. So, I made two projects. The one is spring MVC. It just shows the web page. Another is the restful API. And It worked well but when I call the web page, it doesn't work. I found several solutions, but those not for me. The one checks import org.springframework.web.servlet.ModelAndView. I already used it. Another used String as the return type in the controller instead of ModelAndView. This is my Controller. @Controller public class LoginController { @RequestMapping(value = "/login", method = RequestMethod.GET) pub

Comments

Sign in or sign up to comment and upvote.

No comments yet.