codecamp

10.1 概述

JFinal 默认使用 FreeMarker 作为 View,为了使 eclipse jee 能正确识别 html,所以默认使 用”.html”作为 FreeMarker 视图文件的扩展名(原为”.ftl”)。

如果需要使用 JSP 作为默认视图需要在 configConstant(Constants me)方法中进行配置,见 如下配置:

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

9.3 I18nInterceptor
10.2 FreeMarker 示例
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定