如下所示:
public static void main(string[] args) { protectiondomain pd = stringutils.class.getprotectiondomain(); codesource cs = pd.getcodesource(); system.out.println(cs.getlocation()); }
打印出:file:/d:/work_ser_demo/springtest/webcontent/web-inf/lib/commons-lang-2.4.jar
以上这篇查看import的类是出自哪个jar包的方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持移动技术网。
如对本文有疑问, 点击进行留言回复!!
详解SpringBoot修改启动端口server.port的四种方式
网友评论