2 changed files with 22 additions and 1 deletions
@ -0,0 +1,21 @@ |
|||
package com.ccsens.defaultweb.test; |
|||
|
|||
import org.junit.Test; |
|||
|
|||
import java.net.URL; |
|||
import java.net.URLClassLoader; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: whj |
|||
* @time: 2021/7/22 14:06 |
|||
*/ |
|||
public class Test01 { |
|||
|
|||
@Test |
|||
public void test01(){ |
|||
ClassLoader classLoader = this.getClass().getClassLoader(); |
|||
URL[] var3 = ((URLClassLoader)classLoader).getURLs(); |
|||
System.out.println(var3.length); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue