本文整理汇总了Java中org.springframework.web.servlet.view.freemarker.FreeMarkerView类的典型用法代码示例。如果您正苦于以下问题:Java FreeMarkerView类的具体用法?Java FreeMarkerView怎么用?Java FreeMarkerView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FreeMarkerView类属于org.springframework.web.servlet.view.freemarker包,在下文中一共展示了FreeMarkerView类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RootMap
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
RootMap () throws Exception {
if ( servletContext == null ) {
servletContext = createServletContext();
request = new MockHttpServletRequest("GET", "");
response = new MockHttpServletResponse();
}
rootMap = new HashMap<String, Object>();
RequestContext requestContext = new RequestContext(request, response, servletContext, rootMap);
rootMap.put(FreeMarkerView.SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE, requestContext);
initDummyValues();
}
示例2: viewResolver
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean
public FreeMarkerViewResolver viewResolver() {
final FreeMarkerViewResolver resolver = new FreeMarkerViewResolver();
resolver.setCache(true);
resolver.setPrefix("");
resolver.setSuffix(".ftl");
resolver.setViewClass(FreeMarkerView.class);
resolver.setContentType("text/html; charset=utf-8");
resolver.setExposeSpringMacroHelpers(true);
return resolver;
}
示例3: build
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
public FreeMarkerView build () {
FreeMarkerView view = new FreeMarkerView ();
initialize (view);
if (encoding != null)
view.setEncoding (encoding);
if (configuration != null)
view.setConfiguration (configuration);
view.addStaticAttribute ("enums", BeansWrapper.getDefaultInstance().getEnumModels());
return view;
}
示例4: home
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean
public FreeMarkerView home (FreeMarkerViewBuilder builder) {
return builder.setUrl ("/edu/dfci/cccb/mev/web/views/home.ftl").build ();
}
示例5: index
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean
public FreeMarkerView index (FreeMarkerViewBuilder builder) {
return builder.setUrl ("/edu/dfci/cccb/mev/web/ui/stealmain.html").build ();
}
示例6: api
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean
public FreeMarkerView api (FreeMarkerViewBuilder builder) {
return builder.setUrl ("/edu/dfci/cccb/mev/web/views/api.ftl").build ();
}
示例7: elementHeatmapSettingsModalBody
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean (name = "elements/heatmapSettingsModalBody")
public FreeMarkerView elementHeatmapSettingsModalBody (FreeMarkerViewBuilder builder) {
return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/heatmapSettingsModalBody.ftl").build ();
}
示例8: elementAnovaModalBody
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean (name = "elements/anovaModalBody")
public FreeMarkerView elementAnovaModalBody (FreeMarkerViewBuilder builder) {
return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/anovaModalBody.ftl").build ();
}
示例9: elementTTestModalBody
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean (name = "elements/tTestModalBody")
public FreeMarkerView elementTTestModalBody (FreeMarkerViewBuilder builder) {
return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/tTestModalBody.ftl").build ();
}
示例10: elementHeatmapNavigation
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean (name = "elements/heatmapNavigation")
public FreeMarkerView elementHeatmapNavigation (FreeMarkerViewBuilder builder) {
return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/heatmapNavigation.ftl").build ();
}
示例11: elementAnalysisMenuBar
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean (name = "elements/analysisMenuBar")
public FreeMarkerView elementAnalysisMenuBar (FreeMarkerViewBuilder builder) {
return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/analysisMenuBar.ftl").build ();
}
示例12: elementSideNavigationBar
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean (name = "elements/sideNavigationBar")
public FreeMarkerView elementSideNavigationBar (FreeMarkerViewBuilder builder) {
return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/sideNavigationBar.ftl").build ();
}
示例13: elementExpressionPanel
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean (name = "elements/expressionPanel")
public FreeMarkerView elementExpressionPanel (FreeMarkerViewBuilder builder) {
return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/expressionPanel.ftl").build ();
}
示例14: elementHierarchicalbody
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean (name = "elements/hierarchicalbody")
public FreeMarkerView elementHierarchicalbody (FreeMarkerViewBuilder builder) {
return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/hierarchicalbody.ftl").build ();
}
示例15: elementKMeansBody
import org.springframework.web.servlet.view.freemarker.FreeMarkerView; //导入依赖的package包/类
@Bean (name = "elements/kMeansBody")
public FreeMarkerView elementKMeansBody (FreeMarkerViewBuilder builder) {
return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/kMeansBody.ftl").build ();
}