Heim  >  Fragen und Antworten  >  Hauptteil

java - 同一个controller,都是return的字符串,为什么有的对应到jsp文件有的对应到templates文件?



return "createUserForm";对应到jsp文件中的jsp文件
return "admin/dynUserView";则对应到templates/admin/文件夹下的dynUserView.ftl文件?

黄舟黄舟2742 Tage vor491

Antworte allen(1)Ich werde antworten

  • ringa_lee

    ringa_lee2017-04-18 10:57:09

    你去看一下InternalResourceViewResolver的配置规则就知道了
    下面那个是重定向访问另一个方法。。。

    Antwort
    0
  • StornierenAntwort