有没有办法在模板中打印 运行 Apache Velocity 实例的版本?
Is there a way to print the version of the running Apache Velocity instance in a template?
我在解析 Velocity 模板时遇到一个奇怪的问题,它给我一个类似于 this 用户无法创建地图的问题的异常。我想确保我没有使用旧版本的 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
我在解析 Velocity 模板时遇到一个奇怪的问题,它给我一个类似于 this 用户无法创建地图的问题的异常。我想确保我没有使用旧版本的 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