configConstant(Constants me)


This method is used to configure JFinal constant values, such as the configuration of the development mode constant devMode and the configuration of the default view type ViewType. The following code configures JFinal to run in development mode and the default view type is JSP:

public void configConstant(Constantsme)
{ me.setDevMode(true);
me.setViewType(ViewType.JSP);

}

In development mode, JFinal will output a report for each request, such as outputting the Controller, Method and parameters carried by the request. JFinal supports three common views: JSP, FreeMarker, and Velocity.