spring webmvc mapping the jsp (without controllers)

后端 未结 6 1614
星月不相逢
星月不相逢 2021-01-03 09:47

I am trying to get my hands on Spring 3 web-mvc. I have a simple page link (you know.. thing.

Somehow spring mvc doesn\'t like th

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-03 10:39

    Controller should handle user's request and in your case no controller which mapped to this URL. When controller found, it performs some logic and returns view name which will be used to represent server's response. So, view name translator called only after controller and only for deduce full path to particular JSP file.

    Try to add

    
    

    (Also, you probably may try to omit view-name attribute, but I don't sure.)

提交回复
热议问题