How to configure spring boot mvc app for JSP?

前端 未结 5 1863
遥遥无期
遥遥无期 2020-12-15 12:45

I am new to Spring boot ( and servlet 3.0 ). I am trying to create spring mvc project with JSP as view. When I return a view from my controller it is not getting resolved a

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-15 13:23

    You do not require the ViewResolver. pom.xml needs the mentioned dependencies as told by Yura and place the jsp files in src\main\webapp\WEB-INF\jsp.

提交回复
热议问题