当前位置: 首页>>代码示例>>Java>>正文


Java FreeMarkerView类代码示例

本文整理汇总了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();
}
 
开发者ID:xenit-eu,项目名称:move2alf,代码行数:14,代码来源:RootMap.java

示例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;
}
 
开发者ID:music-for-all,项目名称:music-for-all-application,代码行数:12,代码来源:WebAppConfig.java

示例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;
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:11,代码来源:FreeMarkerViewBuilder.java

示例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 ();
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:5,代码来源:Views.java

示例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 ();
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:5,代码来源:Views.java

示例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 ();
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:5,代码来源:Views.java

示例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 ();
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:5,代码来源:Views.java

示例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 ();
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:5,代码来源:Views.java

示例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 ();
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:5,代码来源:Views.java

示例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 ();
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:5,代码来源:Views.java

示例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 ();
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:5,代码来源:Views.java

示例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 ();
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:5,代码来源:Views.java

示例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 ();
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:5,代码来源:Views.java

示例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 ();
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:5,代码来源:Views.java

示例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 ();
}
 
开发者ID:dfci-cccb,项目名称:mev,代码行数:5,代码来源:Views.java


注:本文中的org.springframework.web.servlet.view.freemarker.FreeMarkerView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。