严重: Exception sending context initialized event to listener instance of class com.htsoft.core.web.listener.StartupListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [conf/app-resources.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: duplicate import: WorkPlan refers to both com.htsoft.oa.model.work.WorkPlan and com.htsoft.oa.model.task.WorkPlan (try using auto-import="false")
关键是duplicate import
我在不同的包里有相同的类名,所以报错了```
改掉其中一个类名就可以了
黑色头发:http://heisetoufa.iteye.com/
hibernate duplicate import,类重名
原创
©著作权归作者所有:来自51CTO博客作者heisetoufa的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
import分层引用类 python python import 类
模块通常模块为一个文件,直接使用import来导入就好了。可以作为module的文件类型有".py"、".pyo"、".pyc"、".pyd"、".so"、".dll"。
import分层引用类 python python 子目录 字符串 对象创建