org.springframework.beans.factory.parsing.BeanDefinitionParsingException:

Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unnamed bean definition specifies neither 'class' nor 'parent' nor 'factory-bean' - can't generate bean name
Offending resource: class path resource [applicationContext.xml]


原因是在:applicationContext.xml    spring配置文件中多加了一对<bean></bean>空标签

你可能感兴趣的:(spring)