@Service public class ClassLoaderService extends Object
| Constructor and Description |
|---|
ClassLoaderService() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.core.io.Resource |
getResourceFromClasspath(String path)
Retrieves a resource from the application classpath.
|
URL |
getURLByResourcePath(String filePath)
Retrieves a specific URL, in case that not exist, return null.
|
public URL getURLByResourcePath(String filePath)
filePath - Path of the file that we want.public org.springframework.core.io.Resource getResourceFromClasspath(String path)
path - Resource path.Resource.Copyright © 2022 MuleSoft, Inc.. All rights reserved.