index()方法;

如:
@Controller("/test/exam")
public class TestController


如下请求请求:http://localhost:8080/test/exam.htm (同http://localhost:8080/test/exam/index.htm)

将默认访问controller中的index()方法:

public void index() {
   setAttr("AA", 123);
render("/test/examList.html");
}

相关文章:

  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2021-09-26
猜你喜欢
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
相关资源
相似解决方案