when i do this:
public static void main(String[] args) {
ApplicationContext ac = new ClassPathXmlApplicationContext("classpath:/applicationContext-ldap.xml");
System.out.println(ac.getBean("typeManager"));
}
i get this error:
Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.util.StringUtils.trimArrayElements([Ljava/lang/String;)[Ljava/lang/String;
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:120)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
at cn.edu.zju.sgr.util.UpdateLdap.main(UpdateLdap.java:14)
原因:
解决方法:
posted on 2010-01-21 10:22
liuyimx 阅读(1954)
评论(2) 编辑 收藏