org.beetl.ext.spring.BeetlSpringViewResolver Java Examples

The following examples show how to use org.beetl.ext.spring.BeetlSpringViewResolver. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BeetlFrameworkConfig.java    From feiqu-opensource with Apache License 2.0 5 votes vote down vote up
@Bean(name = "beetlViewResolver")
public BeetlSpringViewResolver getBeetlSpringViewResolver(@Qualifier("beetlConfig") BeetlGroupUtilConfiguration beetlGroupUtilConfiguration) {
    BeetlSpringViewResolver beetlSpringViewResolver = new BeetlSpringViewResolver();
    beetlSpringViewResolver.setContentType("text/html;charset=UTF-8");
    beetlSpringViewResolver.setOrder(0);
    beetlSpringViewResolver.setConfig(beetlGroupUtilConfiguration);
    return beetlSpringViewResolver;
}
 
Example #2
Source File: BeetlConfig.java    From MeetingFilm with Apache License 2.0 5 votes vote down vote up
/**
 * beetl的视图解析器
 */
@Bean
public BeetlSpringViewResolver beetlViewResolver() {
    BeetlSpringViewResolver beetlSpringViewResolver = new BeetlSpringViewResolver();
    beetlSpringViewResolver.setConfig(beetlConfiguration());
    beetlSpringViewResolver.setContentType("text/html;charset=UTF-8");
    beetlSpringViewResolver.setOrder(0);
    return beetlSpringViewResolver;
}
 
Example #3
Source File: BeetlConfig.java    From WebStack-Guns with MIT License 5 votes vote down vote up
/**
 * beetl的视图解析器
 */
@Bean
public BeetlSpringViewResolver beetlViewResolver() {
    BeetlSpringViewResolver beetlSpringViewResolver = new BeetlSpringViewResolver();
    beetlSpringViewResolver.setConfig(beetlConfiguration());
    beetlSpringViewResolver.setContentType("text/html;charset=UTF-8");
    beetlSpringViewResolver.setOrder(0);
    return beetlSpringViewResolver;
}
 
Example #4
Source File: BeetlConfiguration.java    From seed with Apache License 2.0 5 votes vote down vote up
@Bean(name="beetlViewResolver")
public BeetlSpringViewResolver getBeetlSpringViewResolver(@Qualifier("beetlConfig") BeetlGroupUtilConfiguration beetlGroupUtilConfiguration) {
    BeetlSpringViewResolver beetlSpringViewResolver = new BeetlSpringViewResolver();
    beetlSpringViewResolver.setContentType("text/html;charset=UTF-8");
    beetlSpringViewResolver.setSuffix(".html");
    beetlSpringViewResolver.setOrder(0);
    beetlSpringViewResolver.setConfig(beetlGroupUtilConfiguration);
    return beetlSpringViewResolver;
}
 
Example #5
Source File: BeetlConfiguration.java    From seed with Apache License 2.0 5 votes vote down vote up
@Bean(name="beetlViewResolver")
public BeetlSpringViewResolver getBeetlSpringViewResolver(@Qualifier("beetlConfig") BeetlGroupUtilConfiguration beetlGroupUtilConfiguration) {
    BeetlSpringViewResolver beetlSpringViewResolver = new BeetlSpringViewResolver();
    beetlSpringViewResolver.setContentType("text/html;charset=UTF-8");
    beetlSpringViewResolver.setSuffix(".html");
    beetlSpringViewResolver.setOrder(0);
    beetlSpringViewResolver.setConfig(beetlGroupUtilConfiguration);
    return beetlSpringViewResolver;
}
 
Example #6
Source File: BeetlConfiguration.java    From seed with Apache License 2.0 5 votes vote down vote up
@Bean(name="beetlViewResolver")
public BeetlSpringViewResolver getBeetlSpringViewResolver(@Qualifier("beetlConfig") BeetlGroupUtilConfiguration beetlGroupUtilConfiguration) {
    BeetlSpringViewResolver beetlSpringViewResolver = new BeetlSpringViewResolver();
    beetlSpringViewResolver.setContentType("text/html;charset=UTF-8");
    beetlSpringViewResolver.setSuffix(".html");
    beetlSpringViewResolver.setOrder(0);
    beetlSpringViewResolver.setConfig(beetlGroupUtilConfiguration);
    return beetlSpringViewResolver;
}
 
Example #7
Source File: BeetlConfiguration.java    From seed with Apache License 2.0 5 votes vote down vote up
@Bean(name="beetlViewResolver")
public BeetlSpringViewResolver getBeetlSpringViewResolver(@Qualifier("beetlConfig") BeetlGroupUtilConfiguration beetlGroupUtilConfiguration) {
    BeetlSpringViewResolver beetlSpringViewResolver = new BeetlSpringViewResolver();
    beetlSpringViewResolver.setContentType("text/html;charset=UTF-8");
    beetlSpringViewResolver.setSuffix(".html");
    beetlSpringViewResolver.setOrder(0);
    beetlSpringViewResolver.setConfig(beetlGroupUtilConfiguration);
    return beetlSpringViewResolver;
}
 
Example #8
Source File: BeetlConfig.java    From Guns with GNU Lesser General Public License v3.0 5 votes vote down vote up
/**
 * beetl的视图解析器
 */
@Bean
public BeetlSpringViewResolver beetlViewResolver(LoginContext loginContext) {
    BeetlSpringViewResolver beetlSpringViewResolver = new BeetlSpringViewResolver();
    beetlSpringViewResolver.setConfig(beetlConfiguration(loginContext));
    beetlSpringViewResolver.setContentType("text/html;charset=UTF-8");
    beetlSpringViewResolver.setOrder(0);
    return beetlSpringViewResolver;
}
 
Example #9
Source File: WebConfig.java    From ssm-demo with MIT License 5 votes vote down vote up
@Bean(name = "viewResolver")
public BeetlSpringViewResolver getBeetlSpringViewResolver() {
    BeetlSpringViewResolver beetlSpringViewResolver = new BeetlSpringViewResolver();
    beetlSpringViewResolver.setContentType("text/html;charset=UTF-8");
    beetlSpringViewResolver.setOrder(0);
    return beetlSpringViewResolver;
}
 
Example #10
Source File: ViewConfiguration.java    From java-platform with Apache License 2.0 5 votes vote down vote up
@Bean
public ViewResolver beetlViewResolver() {
	BeetlSpringViewResolver viewResolver = new BeetlSpringViewResolver();
	viewResolver.setConfig(beetlConfig());
	viewResolver.setContentType("text/html;charset=UTF-8");
	viewResolver.setSuffix(".html");
	viewResolver.setCache(true);
	return viewResolver;
}