首页 > 编程语言 > 详细

storm初始化Bolt实例,spring bean绑定失败原因排查

时间:2015-07-28 00:37:27      阅读:354      评论:0      收藏:0      [点我收藏+]
 
public static final String METRICS_AGGREGATE_PERIOD_MILLISECONDS = "metrics.storm.aggregate.period.milliseconds";
    @Value("${" + METRICS_AGGREGATE_PERIOD_MILLISECONDS + "}")
    private long metricsAggregateIntervalMilliSeconds;
上面这样书写,Bolt实例化后metricsAggregateIntervalMilliSeconds的值为null

 

public static final String METRICS_AGGREGATE_PERIOD_MILLISECONDS = "metrics.storm.aggregate.period.milliseconds";
    @Value("${" + METRICS_AGGREGATE_PERIOD_MILLISECONDS + "}")
    private transient long metricsAggregateIntervalMilliSeconds;

 

上面这样写,Bolt实例化后metricsAggregateIntervalMilliSeconds的值为0

 

public static final String METRICS_AGGREGATE_PERIOD_MILLISECONDS = "metrics.storm.aggregate.period.milliseconds";
    @Value("${" + METRICS_AGGREGATE_PERIOD_MILLISECONDS + "}")
    private long metricsAggregateIntervalMilliSeconds;

这样写就正常了.

原因未知,先记上,稍后排查.

storm初始化Bolt实例,spring bean绑定失败原因排查

原文:http://www.cnblogs.com/kenshinn/p/4681443.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!