fix: resource loading failure caused by incorrect parameter order in StringUtils.startsWithIgnoreCase (#5173)

This commit is contained in:
Yazid Lee
2024-06-26 15:53:24 +08:00
committed by GitHub
parent 9493ff733d
commit 9373429015
5 changed files with 5 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ public class SpringCanalInstanceGenerator implements CanalInstanceGenerator {
}
private BeanFactory getBeanFactory(String springXml) {
if (!StringUtils.startsWithIgnoreCase("classpath:", springXml)) {
if (!StringUtils.startsWithIgnoreCase(springXml, "classpath:")) {
springXml = "classpath:" + springXml;
}
ApplicationContext applicationContext = new ClassPathXmlApplicationContext(springXml);