Java 有没有办法在模板中打印正在运行的Apache Velocity实例的版本?
我在解析Velocity模板时遇到了一个奇怪的问题,这给了我一个异常,类似于用户无法创建地图的问题。我想确保我没有使用旧版本的Velocity。如何打印模板中使用的Velocity版本?(或以任何其他方式)您可以在Velocity.jar内的清单文件中检查Apache Velocity版本Java 有没有办法在模板中打印正在运行的Apache Velocity实例的版本?,java,velocity,Java,Velocity,我在解析Velocity模板时遇到了一个奇怪的问题,这给了我一个异常,类似于用户无法创建地图的问题。我想确保我没有使用旧版本的Velocity。如何打印模板中使用的Velocity版本?(或以任何其他方式)您可以在Velocity.jar内的清单文件中检查Apache Velocity版本 Specification-Vendor: Apache Software Foundation Implementation-Title: org.apache.velocity Implementatio
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.jar。我知道清单文件,但我不知道这个.jar文件在哪里。也许这会对你有所帮助。我想你不明白我的问题。这也不能回答我的问题。我在AWS API网关转换中遇到了同样的问题。我们无法访问底层VTL库。