Код: Выделить всё
@Context
@Slf4j
@AllArgsConstructor
public class RemoteService {
private final Provider remoteSessionFactory;
}
< /code>
У меня есть 2 реализации для поставщика < /p>
@Slf4j
@Prototype
@AllArgsConstructor
public class RemoteSessionFactoryA implements Provider {
//some code here
}
@Slf4j
@Prototype
@AllArgsConstructor
public class RemoteSessionFactoryB implements Provider {
//some code here
}
< /code>
Я даже пробовал так, но все же получая такую же ошибку: < /p>
private final @Named("remoteSessionFactoryA) Provider remoteSessionFactory;
Подробнее здесь: https://stackoverflow.com/questions/681 ... es-found-i