org.beetl.ext.spring.BeetlGroupUtilConfiguration Java Examples
The following examples show how to use
org.beetl.ext.spring.BeetlGroupUtilConfiguration.
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 |
/** *内容模板配置 * @return */ @Bean(name = "beetlContentTemplateConfig") public BeetlGroupUtilConfiguration getContentBeetlUtilConfiguration() { BeetlGroupUtilConfiguration beetlGroupUtilConfiguration = new BeetlGroupUtilConfiguration(); ResourcePatternResolver patternResolver = ResourcePatternUtils.getResourcePatternResolver(new DefaultResourceLoader()); beetlGroupUtilConfiguration.setConfigFileResource(patternResolver.getResource("classpath:beetl.properties")); // ClasspathResourceLoader cploder = new ClasspathResourceLoader("/elasticsearch"); // beetlGroupUtilConfiguration.setResourceLoader(cploder); // beetlGroupUtilConfiguration.setRoot("/"); beetlGroupUtilConfiguration.init(); return beetlGroupUtilConfiguration; }
Example #2
Source File: BeetlFrameworkConfig.java From feiqu-opensource 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.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: 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 #6
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 #7
Source File: BeetlConfiguration.java From seed with Apache License 2.0 | 4 votes |
@Bean(initMethod="init", name="beetlConfig") public BeetlGroupUtilConfiguration getBeetlGroupUtilConfiguration() { BeetlGroupUtilConfiguration beetlGroupUtilConfiguration = new BeetlGroupUtilConfiguration(); beetlGroupUtilConfiguration.setResourceLoader(new ClasspathResourceLoader(BeetlConfiguration.class.getClassLoader(), "templates/")); return beetlGroupUtilConfiguration; }
Example #8
Source File: BeetlConfiguration.java From seed with Apache License 2.0 | 4 votes |
@Bean(initMethod="init", name="beetlConfig") public BeetlGroupUtilConfiguration getBeetlGroupUtilConfiguration() { BeetlGroupUtilConfiguration beetlGroupUtilConfiguration = new BeetlGroupUtilConfiguration(); beetlGroupUtilConfiguration.setResourceLoader(new ClasspathResourceLoader(BeetlConfiguration.class.getClassLoader(), "templates/")); return beetlGroupUtilConfiguration; }
Example #9
Source File: BeetlConfiguration.java From seed with Apache License 2.0 | 4 votes |
@Bean(initMethod="init", name="beetlConfig") public BeetlGroupUtilConfiguration getBeetlGroupUtilConfiguration() { BeetlGroupUtilConfiguration beetlGroupUtilConfiguration = new BeetlGroupUtilConfiguration(); beetlGroupUtilConfiguration.setResourceLoader(new ClasspathResourceLoader(BeetlConfiguration.class.getClassLoader(), "templates/")); return beetlGroupUtilConfiguration; }
Example #10
Source File: BeetlConfiguration.java From seed with Apache License 2.0 | 4 votes |
@Bean(initMethod="init", name="beetlConfig") public BeetlGroupUtilConfiguration getBeetlGroupUtilConfiguration() { BeetlGroupUtilConfiguration beetlGroupUtilConfiguration = new BeetlGroupUtilConfiguration(); beetlGroupUtilConfiguration.setResourceLoader(new ClasspathResourceLoader(BeetlConfiguration.class.getClassLoader(), "templates/")); return beetlGroupUtilConfiguration; }
Example #11
Source File: WebConfig.java From ssm-demo with MIT License | 4 votes |
@Bean(initMethod = "init") public BeetlGroupUtilConfiguration getBeetlGroupUtilConfiguration() { BeetlGroupUtilConfiguration beetlGroupUtilConfiguration = new BeetlGroupUtilConfiguration(); return beetlGroupUtilConfiguration; }