Search in sources :

Example 1 with BeetlGroupUtilConfiguration

use of org.beetl.ext.spring.BeetlGroupUtilConfiguration in project vip by guangdada.

the class BeetlConfig method beetlConfiguration.

/**
 * beetl的配置
 */
@Bean(initMethod = "init")
public BeetlGroupUtilConfiguration beetlConfiguration() {
    BeetlGroupUtilConfiguration beetlConfiguration = new BeetlGroupUtilConfiguration();
    beetlConfiguration.setResourceLoader(new ClasspathResourceLoader(BeetlConfig.class.getClassLoader(), beetlProperties.getPrefix()));
    beetlConfiguration.setConfigProperties(beetlProperties.getProperties());
    return beetlConfiguration;
}
Also used : BeetlGroupUtilConfiguration(org.beetl.ext.spring.BeetlGroupUtilConfiguration) ClasspathResourceLoader(org.beetl.core.resource.ClasspathResourceLoader) Bean(org.springframework.context.annotation.Bean)

Aggregations

ClasspathResourceLoader (org.beetl.core.resource.ClasspathResourceLoader)1 BeetlGroupUtilConfiguration (org.beetl.ext.spring.BeetlGroupUtilConfiguration)1 Bean (org.springframework.context.annotation.Bean)1