Jul 27, 2011 10:56:15 AM org.springframework.web.servlet.FrameworkServlet
initServletBean
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from ServletContext resource
[/WEB-INF/dispatcher-servlet.xml];
nested exception is java.lang.IllegalStateException:
Annotation-specified bean name 'fooController' for
bean class [com.fooapp.ctrl.FooController]
conflicts with existing, non-compatible bean definition of same name
and class [com.fooapp.ctrl.admin.FooController]
In both packages, I defined the controller using annotation @Controller:
@Controller
public class FooController {
...
Should I use a different name for the controller in the package admin?
source
share