开发者

java command on DOS

开发者 https://www.devze.com 2023-01-30 10:36 出处:网络
with javap java.lang.Object we are able to see the methods signature under it, where as with javap javax.servlet.ServletConfigwe are not able to see it.

with javap java.lang.Object we are able to see the methods signature under it, where as with javap javax.servlet.ServletConfig we are not able to see it.

Could any one please suggest any com开发者_高级运维mand for checking the method signatures for javax.servlet.ServletConfig


I don't know if you specifically want a local tool to find the signature, however the best bet is always to look at the API documentation. A google search of the fully qualified class name leads straight to the official API documentation. This will not only show you the method signatures, but often give you valuable contextual information well beyond an argument name or type.


You should do

java -cp <location-of-servlet-api-jar> javax.servlet.ServletConfig


You will need to locate your servlet-api.jar file and issue the following command:

javap -classpath javax.servlet.ServletConfig

substitute with the path to your servlet-api-.jar

0

精彩评论

暂无评论...
验证码 换一张
取 消