Fiz a implementação do Spring Security conforme o Instrutor mandou, mas ao rodar recebo a mensagem de que o UsuarioDAO não pode ser injetado:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'br.com.kemedico.daos.UsuarioDAO' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1700)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1256)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1210)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
... 45 more
link do github do projeto https://github.com/samuelvelter2/kemedico (coloquei o link, porque as classes são grandes demais pro fórum do Alura :P ) A versão do Spring é a 5.2.5 e a do Spring security é 5.3.1( e é a versão recomendada pra 5.2.5 do spring, é o que tá no MvnRepository)