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");
}

相关文章: