codecamp

2.2 configConstant(Constants me)

  此方法用来配置 JFinal 常量值,如开发模式常量 devMode 的配置,默认视图类型 ViewType的配置,如下代码配置了 JFinal 运行在开发模式下且默认视图类型为 JSP:

public void configConstant(Constantsme)

 { me.setDevMode(true); 

me.setViewType(ViewType.JSP);

}

  在开发模式下,JFinal 会对每次请求输出报告,如输出本次请求的 Controller、Method 以 及请求所携带的参数。JFinal 支持 JSP、FreeMarker、Velocity 三种常用视图。


2.1 概述
2.3 configRoute(Routes me)
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定