日期:2014-05-19  浏览次数:21020 次

关于velocity模板的一个问题
Java code

Velocity  [debug] Velocimacro : "velocimacro.library" is not set.  Trying default library: VM_global_library.vm
2010/03/08 9:42:38 org.apache.catalina.core.ApplicationContext log
Velocity  [debug] Could not load resource 'VM_global_library.vm' from ResourceLoader org.apache.velocity.tools.view.servlet.WebappLoader: 
2010/03/08 9:42:38 org.apache.catalina.core.ApplicationContext log
Velocity  [debug] org.apache.velocity.exception.ResourceNotFoundException: WebappLoader : Resource 'VM_global_library.vm' not found.
    at org.apache.velocity.tools.view.servlet.WebappLoader.getResourceStream(WebappLoader.java:179)
    at org.apache.velocity.runtime.resource.loader.ResourceLoader.resourceExists(ResourceLoader.java:224)




这是个什么问题啊,该怎么解决呢?

------解决方案--------------------
Velocimacro:“velocimacro.library”未设置。 尝试默认的库:VM_global_library.vm 




忘了什么配置?