Java Code Examples for org.beetl.ext.spring.BeetlSpringViewResolver#setSuffix()
The following examples show how to use
org.beetl.ext.spring.BeetlSpringViewResolver#setSuffix() .
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: BeetlConfiguration.java From seed with Apache License 2.0 | 5 votes |
@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 2
Source File: BeetlConfiguration.java From seed with Apache License 2.0 | 5 votes |
@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 3
Source File: BeetlConfiguration.java From seed with Apache License 2.0 | 5 votes |
@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 4
Source File: BeetlConfiguration.java From seed with Apache License 2.0 | 5 votes |
@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: ViewConfiguration.java From java-platform with Apache License 2.0 | 5 votes |
@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; }