Для этих целей я пытаюсь использовать SpEL-возможности следующим образом: :
Код: Выделить всё
@AllArgsConstructor
public class ContentSender {
@Scheduled(fixedRateString = "#{OuterProperties.rateForMessageReading}")
public void contentModelMessageSource() throws IOException {
}
}
Код: Выделить всё
@Getter
@Setter
@ConfigurationProperties("app")
public class OuterProperties {
private static final long WAITING_INTERVAL = 100;
private long rateForMessageReading;
}
SpelEvaluationException: EL1008E: Свойство или поле 'outerProperties 'невозможно найти объект типа 'org.springframework.beans.factory.config.BeanExpressionContext' - возможно, он не общедоступен или недействителен?
Что такое Я делаю неправильно?
Подробнее здесь: https://stackoverflow.com/questions/675 ... ed-by-spel