Could Not Autowire. No Beans Of 'String' Type Found. 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
Comments
Post a Comment