• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java GroovyMarkupViewResolver类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver的典型用法代码示例。如果您正苦于以下问题:Java GroovyMarkupViewResolver类的具体用法?Java GroovyMarkupViewResolver怎么用?Java GroovyMarkupViewResolver使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

GroovyMarkupViewResolver类属于org.springframework.web.servlet.view.groovy包,在下文中一共展示了GroovyMarkupViewResolver类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: deviceDelegatingGroovyMarkupViewResolver

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
@Bean
@ConditionalOnBean(GroovyMarkupViewResolver.class)
public LiteDeviceDelegatingViewResolver deviceDelegatingGroovyMarkupViewResolver(
		DeviceDelegatingViewResolverFactory factory,
		GroovyMarkupViewResolver viewResolver) {
	return factory.createViewResolver(viewResolver);
}
 

开发者ID:vikrammane23,
项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,
代码行数:8,
代码来源:DeviceDelegatingViewResolverAutoConfiguration.java

示例2: groovyMarkupViewResolver

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(name = "groovyMarkupViewResolver")
public GroovyMarkupViewResolver groovyMarkupViewResolver() {
	GroovyMarkupViewResolver resolver = new GroovyMarkupViewResolver();
	this.properties.applyToViewResolver(resolver);
	return resolver;
}
 

开发者ID:vikrammane23,
项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,
代码行数:8,
代码来源:GroovyTemplateAutoConfiguration.java

示例3: deviceDelegatingGroovyMarkupViewResolver

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
@Test
public void deviceDelegatingGroovyMarkupViewResolver() throws Exception {
	load(Collections.<Class<?>>singletonList(GroovyTemplateAutoConfiguration.class),
			"spring.mobile.devicedelegatingviewresolver.enabled:true");
	assertThat(this.context.getBeansOfType(LiteDeviceDelegatingViewResolver.class))
			.hasSize(2);
	assertLiteDeviceDelegatingViewResolver(
			this.context.getBean(GroovyMarkupViewResolver.class),
			"deviceDelegatingGroovyMarkupViewResolver");
}
 

开发者ID:vikrammane23,
项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,
代码行数:11,
代码来源:DeviceDelegatingViewResolverAutoConfigurationTests.java

示例4: render

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
private MockHttpServletResponse render(String viewName, Locale locale)
		throws Exception {
	LocaleContextHolder.setLocale(locale);
	GroovyMarkupViewResolver resolver = this.context
			.getBean(GroovyMarkupViewResolver.class);
	View view = resolver.resolveViewName(viewName, locale);
	assertThat(view).isNotNull();
	HttpServletRequest request = new MockHttpServletRequest();
	request.setAttribute(RequestContext.WEB_APPLICATION_CONTEXT_ATTRIBUTE,
			this.context);
	MockHttpServletResponse response = new MockHttpServletResponse();
	view.render(null, request, response);
	return response;
}
 

开发者ID:vikrammane23,
项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,
代码行数:15,
代码来源:GroovyTemplateAutoConfigurationTests.java

示例5: render

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
private MockHttpServletResponse render(String viewName, Locale locale)
		throws Exception {
	LocaleContextHolder.setLocale(locale);
	GroovyMarkupViewResolver resolver = this.context
			.getBean(GroovyMarkupViewResolver.class);
	View view = resolver.resolveViewName(viewName, locale);
	assertThat(view, notNullValue());
	HttpServletRequest request = new MockHttpServletRequest();
	request.setAttribute(RequestContext.WEB_APPLICATION_CONTEXT_ATTRIBUTE,
			this.context);
	MockHttpServletResponse response = new MockHttpServletResponse();
	view.render(null, request, response);
	return response;
}
 

开发者ID:Nephilim84,
项目名称:contestparser,
代码行数:15,
代码来源:GroovyTemplateAutoConfigurationTests.java

示例6: groovyMarkupViewResolver

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(name = "groovyMarkupViewResolver")
public GroovyMarkupViewResolver groovyMarkupViewResolver() {
	GroovyMarkupViewResolver resolver = super.groovyMarkupViewResolver();
	resolver.setViewClass(FixGroovyMarkupView.class);
	return resolver;
}
 

开发者ID:wayshall,
项目名称:onetwo,
代码行数:8,
代码来源:FixGroovyWebConfiguration.java

示例7: GroovyMarkupRegistration

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
private GroovyMarkupRegistration() {
	super(new GroovyMarkupViewResolver());
	getViewResolver().setSuffix(".tpl");
}
 

开发者ID:langtianya,
项目名称:spring4-understanding,
代码行数:5,
代码来源:ViewResolverRegistry.java

示例8: groovyMarkup

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
@Test
public void groovyMarkup() {
	this.registry.groovy().prefix("/").suffix(".groovy").cache(true);
	GroovyMarkupViewResolver resolver = checkAndGetResolver(GroovyMarkupViewResolver.class);
	checkPropertyValues(resolver, "prefix", "/", "suffix", ".groovy", "cacheLimit", 1024);
}
 

开发者ID:langtianya,
项目名称:spring4-understanding,
代码行数:7,
代码来源:ViewResolverRegistryTests.java

示例9: groovyMarkupDefaultValues

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
@Test
public void groovyMarkupDefaultValues() {
	this.registry.groovy();
	GroovyMarkupViewResolver resolver = checkAndGetResolver(GroovyMarkupViewResolver.class);
	checkPropertyValues(resolver, "prefix", "", "suffix", ".tpl");
}
 

开发者ID:langtianya,
项目名称:spring4-understanding,
代码行数:7,
代码来源:ViewResolverRegistryTests.java

示例10: defaultConfiguration

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
@Test
public void defaultConfiguration() {
	registerAndRefreshContext();
	assertThat(this.context.getBean(GroovyMarkupViewResolver.class)).isNotNull();
}
 

开发者ID:vikrammane23,
项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,
代码行数:6,
代码来源:GroovyTemplateAutoConfigurationTests.java

示例11: disableCache

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
@Test
public void disableCache() {
	registerAndRefreshContext("spring.groovy.template.cache:false");
	assertThat(this.context.getBean(GroovyMarkupViewResolver.class).getCacheLimit())
			.isEqualTo(0);
}
 

开发者ID:vikrammane23,
项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,
代码行数:7,
代码来源:GroovyTemplateAutoConfigurationTests.java

示例12: defaultConfiguration

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
@Test
public void defaultConfiguration() {
	registerAndRefreshContext();
	assertThat(this.context.getBean(GroovyMarkupViewResolver.class), notNullValue());
}
 

开发者ID:Nephilim84,
项目名称:contestparser,
代码行数:6,
代码来源:GroovyTemplateAutoConfigurationTests.java

示例13: disableCache

点赞 2

import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; //导入依赖的package包/类
@Test
public void disableCache() {
	registerAndRefreshContext("spring.groovy.template.cache:false");
	assertThat(this.context.getBean(GroovyMarkupViewResolver.class).getCacheLimit(),
			equalTo(0));
}
 

开发者ID:Nephilim84,
项目名称:contestparser,
代码行数:7,
代码来源:GroovyTemplateAutoConfigurationTests.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)