1、查看项目中spring版本:
首先,找到项目中jar包的引入位置,将spring.jar包拷到其他不影响项目的位置,比如,我拷到了桌面位置。
然后,右键spring.jar包,选择打开方式,选择解压缩方式[此处同解压文件一样的步骤],然后在解压后的文件依次打开文件夹顺序:
Spring.jar/META-INF/MANIFEST.MF,显示信息如下:[红色字即为版本号]
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_12-b04 (Sun Microsystems Inc.)
Implementation-Title: Spring Framework
Implementation-Version: 2.0.8
Spring-Version: 2.0.8
Premain-Class: org.springframework.instrument.InstrumentationSavingAgent
2、查看项目中structs版本:
打开步骤同上,
Manifest-Version: 1.0
Created-By: Apache Ant 1.5.1
Extension-Name: Struts Framework
Specification-Title: Struts Framework
Specification-Vendor: Apache Software Foundation
Specification-Version: 1.1
Implementation-Title: Struts Framework
Implementation-Vendor: Apache Software Foundation
Implementation-Vendor-Id: org.apache
Implementation-Version: 1.1
Class-Path: commons-beanutils.jar commons-collections.jar commons-dig
ester.jar commons-logging.jar commons-validator.jar jakarta-oro.jar s
truts-legacy.jar
3、查看项目中servelets版本:
打开步骤同上,
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.4.2_09-b05 (Sun Microsystems Inc.)
Name: javax/servlet/
Specification-Title: Java API for Servlets
Specification-Version: 2.4
Specification-Vendor: Sun Microsystems, Inc.
Implementation-Title: javax.servlet
Implementation-Version: 2.4.public_draft
Implementation-Vendor: Apache Software Foundation