Search in sources :

Example 1 with BeetlConfiguration

use of com.ikoori.vip.server.core.beetl.BeetlConfiguration in project vip by guangdada.

the class BeetlConfig method beetlConfiguration.

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

Aggregations

BeetlConfiguration (com.ikoori.vip.server.core.beetl.BeetlConfiguration)1 ClasspathResourceLoader (org.beetl.core.resource.ClasspathResourceLoader)1 Bean (org.springframework.context.annotation.Bean)1