【报错日记】
今天在新电脑上能运行旧的,但是新的不能运行,仔细看了控制台报的错
org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from file[E:\Users\ultim\workspace_luna1\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\fjanms-web\WEB-INF\classes\spring\applicationContext.xml]; nested exception is java.lang.IllegalStateException:
Annotation-specified bean name 'homeBulletinDao' for bean class[com.ffcs.oss.sm.dao.home.HomeBulletinDao] conflicts with existing, non-compatible bean definition of same name and class[com.ffcs.oss.home.dao.HomeBulletinDao]
原来是两个包下的同一个类HomeBulletinDao冲突了。
之前运行成功的时候并不存在这样的异常,也没有什么特殊的不同的操作。