jfinal的controller默认访问的方法是什么

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");
}
原文地址:https://www.cnblogs.com/YuyuanNo1/p/9789575.html