我在解析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