@Scheduled(fixedDelay = 5000)public void readLog(){... } $ b不幸的是,通过Spring表达式语言(EL)的手段,@Value返回一个String对象,它在根据fixedDelay参数的要求,无法自动转换为长整型。