概述
JFinal 默認(rèn)使用 FreeMarker 作為 View,為了使 eclipse jee 能正確識別 html,所以默認(rèn)使 用”.html”作為 FreeMarker 視圖文件的擴展名(原為”.ftl”)。
如果需要使用 JSP 作為默認(rèn)視圖需要在 configConstant(Constants me)方法中進(jìn)行配置,見 如下配置:
public void configConstant(Constants me) { me.setDevMode(true); me.setViewType(ViewType.JSP);
}
}