关于velocity模板的一个问题
- Java code
Velocity [debug] Velocimacro : "velocimacro.library" is not set. Trying default library: VM_global_library.vm2010/03/08 9:42:38 org.apache.catalina.core.ApplicationContext logVelocity [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 logVelocity [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
忘了什么配置?