有没有一种方法可以在模板中打印正在运行的ApacheVelocity实例的版本



我在解析Velocity模板时遇到了一个奇怪的问题,这给了我一个类似于用户无法创建Map的异常。我想确保我没有使用旧版本的Velocity。如何打印模板中使用的Velocity版本?(或以任何其他方式)

您可以在Velocity.jar 内的MANIFEST文件中检查Apache Velocity版本

Specification-Vendor: Apache Software Foundation
Implementation-Title: org.apache.velocity
Implementation-Vendor-Id: org.apache
Implementation-Vendor: Apache Software Foundation
Implementation-Version: 1.7

最新更新