今天查看了下velocity初始化的源码,发现了以下几句:
protected static final String TOOLBOX_KEY =
"org.apache.velocity.toolbox";
/**
* This is the string that is looked for when getInitParameter is
* called ("org.apache.velocity.properties").
*/
protected static final String INIT_PROPS_KEY =
"org.apache.velocity.properties";
/**
* Default toolbox configuration file path. If no alternate value for
* this is specified, the servlet will look here.
*/
protected static final String DEFAULT_TOOLBOX_PATH =
"/WEB-INF/toolbox.xml";
/**
* Default velocity properties file path. If no alternate value for
* this is specified, the servlet will look here.
*/
protected static final String DEFAULT_PROPERTIES