当我切换到"classpath“资源加载器时,我似乎无法访问我的velocity模板。我尝试将模板目录放在/WEB-INF/classes/templates和/WEB-INF/templates上,并在/WEB-INF/lib中创建一个templates.jar。它们都不起作用。Properties p = new Properties();
p.setProperty("runtime.log.logsystem
我无法让NVelocity初始化。我不想做任何复杂的事情,所以如果它初始化为默认值也没问题,但它甚至不会这么做。这一点:ExtendedProperties props = new ExtendedProperties();结果是:“似乎没有指定任何类作为ResourceManager...”也是这样做的:
VelocityEngine velocity = ne