All Downloads are FREE. Search and download functionalities are using the official Maven repository.

coo.mvc.config.FreeMarkerSettings Maven / Gradle / Ivy

package coo.mvc.config;

import org.springframework.stereotype.Component;

import coo.base.util.DateUtils;
import coo.base.util.StringUtils;

/**
 * FreeMarker配置组件。
 */
@Component("coo.mvc.config.FreeMarkerSettings")
public class FreeMarkerSettings extends AbstractFreeMarkerSettings {
	/**
	 * 构造方法。
	 */
	public FreeMarkerSettings() {
		addTemplatePath("classpath:/coo/mvc/macros/");
		addTemplatePath("classpath:/coo/mvc/templates/");
		addAutoImport("s", "mvc.ftl");
		addAutoImport("dwz", "dwz.ftl");
		addAutoImport("ecs", "ecs.ftl");
		addStaticClass(StringUtils.class);
		addStaticClass(DateUtils.class);
		addEnumPackage("coo.core.enums");
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy