Skip to content

Instantly share code, notes, and snippets.

@sushanthmangalore
Created December 15, 2016 12:10
Show Gist options
  • Save sushanthmangalore/c8ca0409a4703727baffcaa03a457102 to your computer and use it in GitHub Desktop.
Save sushanthmangalore/c8ca0409a4703727baffcaa03a457102 to your computer and use it in GitHub Desktop.
Spent hours trying to figure out why my Spring MVC controller was not resolving to my JSP view correctly, despite the view resolver and all other configuration being in place. The name of the view returned from the controller method was being displayed in the browser window in plain text. Turned out I had the @RestController annotation in place instead of @Controller. Gaaaaaaarh !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment