2016-06-20 42 views
-1

我對Spring有一個問題。我工作的一個小的MVC應用程序後的一些工作,我faceing這樣一個問題:ConflictingBeanDefinitionException與不存在的類

Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'userServiceImpl' for bean class [com.(...).servlet3.UserServiceImpl] conflicts with existing, non-compatible bean definition of same name and class [com.(...).service.UserServiceImpl] 

此異常看起來像sefl-解釋,但有一個件事wird:我沒有這樣的類爲[ COM。(...)。servlet3.UserServiceImpl。我曾經有,但搬到另一個包。我的結構是這樣的:

Project structure

有誰面臨這樣的問題?

+0

Downvote ok ...但任何詞語爲什麼? – PastorPL

回答

0

你必須在bean中檢查get和set方法,以獲取路徑bean定義或路徑名似乎重複。