码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2015-07-28 00:39:57      阅读:639      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!