У меня есть этот класс:
Код: Выделить всё
@Configuration
@RequiredArgsConstructor
@ConditionalOnProperty(prefix = "spring.cloud.stream.kafka.binder", value = "brokers")
@EnableConfigurationProperties(value = { KafkaBinderConfigurationProperties.class, KafkaExtendedBindingProperties.class, KafkaProperties.class, BindingServiceProperties.class })
public class ReactorKafkaProperties {
@Getter
@Value("${spring.application.name}")
protected String applicationName;
@Getter
private final ObjectMapper objectMapper;
@Getter
private final KafkaBinderConfigurationProperties kafkaBinderConfigurationProperties; // kafka scs
@Getter
private final KafkaExtendedBindingProperties kafkaExtendedBindingProperties; // kafka scs
@Getter
private final BindingServiceProperties bindingServiceProperties; // commons scs
}
Код: Выделить всё
*\r\nAPPLICATION FAILED TO START\r\n***************************\r\n\r\nDescription:\r\n\r\nFailed to bind properties under 'spring.cloud.stream.kafka.binder' to org.springframework.cloud.stream.binder.kafka.properties.KafkaBinderConfigurationProperties:\r\n\r\n Reason: java.lang.IllegalArgumentException: 'kafkaProperties' cannot be null\r\n\r\nAction:\r\n\r\nUpdate your application's configuration\r\n","logger_name":"org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter","thread_name":"main","level":"ERROR","level_value":40000}
У кого-нибудь есть идеи?>
Подробнее здесь: https://stackoverflow.com/questions/798 ... properties
Мобильная версия