Could not autowire. No beans of 'AuthenticationManager' type found. spring boot code example

Example 1: could not autowire no beans of type found in springbootapplication

@Repository
public interface YourRepository ...
...

@Service
public classe YourClassService

Example 2: could not autowire no beans of type found

@ComponentScan(basePackages={"path.to.my.components","path.to.my.othercomponents"})
dans le mvc.xml modifier la racine base package
ex : com.projet => com.projet.*
les alertes sont ainsi suppr = les composants sont bien pris en compte

Tags:

Misc Example