public static String resolveResourcePath(String resourcePath) { if(resourcePath.startsWith("classpath:")) { String strippedPath = resourcePath.replace("classpath:", ""); return loadResource(strippedPath).toString(); } else { return resourcePath; } }
public static String resolveResourcePath(String resourcePath) { if(resourcePath.startsWith("classpath:")) { String strippedPath = resourcePath.replace("classpath:", ""); return loadResource(strippedPath).toString(); } else { return resourcePath; } }