public class UResourceUtil extends Object
Constructor and Description |
---|
UResourceUtil() |
Modifier and Type | Method and Description |
---|---|
static URL |
getResource(String resource)
获得资源的URL
路径用/分隔,例如: |
static URL |
getResource(String resource,
Class<?> baseClass)
获得资源相对路径对应的URL
|
public static URL getResource(String resource) throws IORuntimeException
config/a/db.config spring/xml/test.xml
resource
- 资源(相对Classpath的路径)IORuntimeException
Copyright © 2020. All rights reserved.