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

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable