Home  >  Q&A  >  body text

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



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

黄舟黄舟2742 days ago492

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-18 10:57:09

    You can find out by taking a look at the configuration rules of InternalResourceViewResolver
    The one below is another method of redirecting access. . .

    reply
    0
  • Cancelreply