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

@@ -30,7 +30,7 @@ public class TableMetaTSDBBuilder {
if (applicationContext == null) {
synchronized (contexts) {
if (applicationContext == null) {
if (!StringUtils.startsWithIgnoreCase("classpath:", springXml)) {
if (!StringUtils.startsWithIgnoreCase(springXml, "classpath:")) {
springXml = "classpath:" + springXml;
}
applicationContext = new ClassPathXmlApplicationContext(springXml);