Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

2.2 configConstant(Constants me)


May 14, 2021 JFinal manual



This method is used to configure JFinal constant values, such as the configuration of the development mode constant devMode, the configuration of the default view type ViewType, and 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 outputs reports on each request, such as Controller, Method, and the parameters that the request carries. JFinal supports JSP, FreeMarker, and Velocity.