Код: Выделить всё
- UnsatisfiedDependency: Error creating bean with name 'mainController': Unsatisfied dependency expressed through field 'puSubHandler';
- UnsatisfiedDependency: Error creating bean with name 'puSubHandler': Unsatisfied dependency expressed through field 'messagingGateway';
- BeanCreationException: Error creating bean with name 'pubsubOutboundGateway' defined in URL [jar:nested:
- BeanCrationException: Error creating bean with name 'taskScheduler' defined in class path resource [org/springframework/boot/autoconfigure/task/TaskSchedulingConfigurations$TaskSchedulerConfiguration.class]: Signature parse error : Exccepted a class type
- GenericSignatureFormatError : Signature parse error : Exccepted a class type
Это класс, обрабатывающий сообщения pubsub:
`
Код: Выделить всё
@Component
public class pubSubHandler{
@Autowired
private pubsubOutboundGateway messagingGateway;
messagingGateway.sendToPubsub(payload);
}
Код: Выделить всё
@Service
@MessaginGateway(defaultRequestChannel="pubsubOutboundChannel")
public interface pubsubOutboundGateway{
void sendToPubsub(byte[] payload);
}
Подробнее здесь: https://stackoverflow.com/questions/781 ... inggateway
Мобильная версия