Element içindeki spring-servlet.xml dosyasına nasıl birden fazla paket ekleyebilirim context:component-scan
?
denedim
<context:component-scan base-package="z.y.z.service" base-package="x.y.z.controller" />
ve
<context:component-scan base-package="x.y.z.service, x.y.z.controller" />
ve
<context:component-scan base-package="x.y.z.service" />
<context:component-scan base-package="x.y.z.controller" />
ama hata var:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [x.y.z.dao.daoservice.LoginDAO] found for dependency: