No qualifying bean of type
Publié : 26 nov. 2019 0:46
Bonjour,
J'obtiens la même erreure pour tout les tests:
1. En executant gradle bootRun :
Description: Field cs in com.yaps.petstore.api.CreateCustomerController required a bean of type 'com.yaps.petstore.domain.service.CustomerService' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action: Consider defining a bean of type 'com.yaps.petstore.domain.service.CustomerService' in your configuration.
2. En executant gradle myTest
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.yaps.petstore.domain.service.CustomerService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Mais je ne comprends pas bien que dois je faire...
Merci
J'obtiens la même erreure pour tout les tests:
1. En executant gradle bootRun :
Description: Field cs in com.yaps.petstore.api.CreateCustomerController required a bean of type 'com.yaps.petstore.domain.service.CustomerService' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action: Consider defining a bean of type 'com.yaps.petstore.domain.service.CustomerService' in your configuration.
2. En executant gradle myTest
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.yaps.petstore.domain.service.CustomerService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Mais je ne comprends pas bien que dois je faire...
Merci