我有以下两个类和yaml-config: @ConfigurationProperties public class SplitterPropsthis.producerProps = getProducerProperties(kafkaProps, subscriberProps);...如果在行1֎中有@已验证的注释(NPE )然后是appProps.subscriber !=֎2֎行中的空
我的Spring boot应用程序无法从application.yml创建带有属性对象的bean。下面是我所做的: host: 10.0.5.23我创建了一个StatsdProperties @Component类来保存上面的数据:@ConfigurationProperties(prefix="statsd")
public class StatsdProperties {