Код: Выделить всё
APPLICATION FAILED TO START
***************************
Description:
Field myFeignClient in my.path.AuthorizationService required a bean of type 'my.other.path.ProjectMicroserviceFeignClient' 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 'my.other.path.ProjectMicroserviceFeignClient' in your configuration.
Классы AuthortizationService и ProjectMicRoServiceFeignClient расположены во внешней зависимости.
Код: Выделить всё
@SpringBootApplication
@ComponentScan(basePackages = { "my.microservice", "my.external.dependency" })
public class MainApplication {
// ...
}
@Configuration
@EnableFeignClients(
basePackages = { "my.microservice", "my.external.dependency" }
)
public class FeignConfiguration {
// ...
}
< /code>
Объекты домена от внешней зависимости доступны, но я не понимаю, почему он не находит бобы. Чего мне здесь не хватает?
Подробнее здесь: https://stackoverflow.com/questions/797 ... -not-found