How do I know what version of servlet-api.jar I have?

后端 未结 5 1370
一个人的身影
一个人的身影 2021-01-02 02:49

I downloaded a copy of servlet-api.jar from java2s.com. How do I know what version it is? There\'s no reference on the site.

EDIT

Ah. Apo

5条回答
  •  时光说笑
    2021-01-02 03:22

    It's basically inside your JAR's MANIFEST file under /META-INF/MANIFEST.MF:

    Name: javax/servlet/
    Specification-Title: Java API for Servlets
    Specification-Version: 3.0
    Specification-Vendor: Sun Microsystems, Inc.
    Implementation-Title: javax.servlet
    Implementation-Version: 3.0.FR
    Implementation-Vendor: Apache Software Foundation
    

提交回复
热议问题