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");
}
来源:oschina
链接:https://my.oschina.net/u/4265496/blog/4478918