Como posso adicionar vários pacotes no arquivo spring-servlet.xml no context:component-scan
elemento?
eu tentei
<context:component-scan base-package="z.y.z.service" base-package="x.y.z.controller" />
e
<context:component-scan base-package="x.y.z.service, x.y.z.controller" />
e
<context:component-scan base-package="x.y.z.service" />
<context:component-scan base-package="x.y.z.controller" />
mas obteve erro:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [x.y.z.dao.daoservice.LoginDAO] found for dependency: