auth-server-java/generator-code/src/main/java/cn/bunny/config/VmsHolder.java

19 lines
471 B
Java
Raw Normal View History

2025-04-05 16:36:23 +08:00
package cn.bunny.config;
import jakarta.annotation.PostConstruct;
import org.apache.velocity.app.Velocity;
import org.springframework.stereotype.Component;
import java.util.Properties;
@Component
public class VmsHolder {
@PostConstruct
public void init() {
Properties prop = new Properties();
prop.put("file.resource.loader.class" , "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader" );
Velocity.init(prop);
}
}