【spring】non-compatible bean definition of same name and class
2016-10-15 22:20
405 查看
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected excep tion parsing XML document from file [F:\java6\idear2010\idear2010\WEB-INF\classe s\applicationContext.xml]; nested exception is java.lang.IllegalStateException: Annotation-specified bean name 'homeAction' for bean class [com.idearsoft.idear. module.SystemMaintain.action.HomeAction] conflicts with existing, non-compatible bean definition of same name and class [com.idearsoft.idear.module.Main.action. HomeAction]
我在连个个不同package中有两个相同名称的类,只是类所在的目录不同。例如在 com.idearsoft.idear.module.SystemMaintain.action下有个HomeAction.java,在 com.idearsoft.idear.module.Main.action也有一个HomeAction.java。在应用服务器启动时总是提示这两个homeAction 冲突。
自:http://blog.sina.com.cn/s/blog_4b6f8d1501015jt4.html
相关文章推荐
- SpringMVC conflicts with existing, non-compatible bean definition of same name and class 的解决办法,sprin
- SpringMVC conflicts with existing, non-compatible bean definition of same name and class 的解决办法
- SpringMVC conflicts with existing, non-compatible bean definition of same name and class 的解决办法 问题起因
- SpringMVC conflicts with existing, non-compatible bean definition of same name and class 的解决办法
- SpringMVC conflicts with existing, non-compatible bean definition of same name and class 的解决办法
- conflicts with existing, non-compatible bean definition of same name and class
- ....conflicts with existing, non-compatible bean definition of same name and class
- 记录:non-compatible bean definition of same name and class [com.XXX.XXX]
- non-compatible bean definition of same name and class
- SpringMVC 启动报错,conflicts with existing, non-compatible bean definition of same name and class ...
- 异常解决:non-compatible bean definition of same name and class【com.xxx.xxx.XXX】
- non-compatible bean definition of same name and class
- non-compatible bean definition of same name and class [x
- spring 'arroudAspect' for bean class [com.dw.test.ArroudAspect] conflicts with existing, non-compatible bean definition of same name and class [com.dw.aspect.ArroudAspect]
- conflicts with existing, non-compatible bean definition of same name and class
- SpringMVC中类名重名(SpringMVC conflicts with existing, non-compatible bean definition of same name )
- 关于问题The fully qualified name of the bean's class, except if it serves only as a parent definition fo
- spring quartz:Instantiation of bean failed; nested exception is java.lang.IncompatibleClassChangeErr 分类: Java spring 2015-01-07 19:00 438人阅读 评论(0) 收藏
- 已解决:maven,SSM项目的spring-mvc.xm文件引用类爆红:The fully qualified name of the bean's class, except if it serv
- 关于问题The fully qualified name of the bean's class, except if it serves only as a parent definition fo