mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fix: resource loading failure caused by incorrect parameter order in StringUtils.startsWithIgnoreCase (#5173)
This commit is contained in:
@@ -25,7 +25,7 @@ import org.springframework.util.PropertyPlaceholderHelper;
|
||||
public class YamlUtils {
|
||||
|
||||
public static <T> T resourceYmlToObj(String resource, String prefix, Class<T> clazz) {
|
||||
if (!StringUtils.startsWithIgnoreCase("classpath:", resource)) {
|
||||
if (!StringUtils.startsWithIgnoreCase(resource, "classpath:")) {
|
||||
resource = "classpath:" + resource;
|
||||
}
|
||||
ClassPathResource classPathResource = new ClassPathResource(resource);
|
||||
|
||||
Reference in New Issue
Block a user