Значение элемента ttl с истекшим сроком действия Ehcache не заполняется из файла свойств

#spring #spring-boot #spring-el #ehcache-3

Вопрос:

Я хочу загрузить значение ttl из файла свойств, чтобы у каждой среды были свои значения.

  <cache alias="test">
   <expiry>
        <ttl unit="millis">${ehcache.time-to-live}</ttl>
   </expiry>
.
.
 </cache>
 

У меня есть собственность ehcache.time-to-live до ehcache.xml загружается, но ошибка ниже при запуске приложения-

  lineNumber: 10; columnNumber: 56; cvc-datatype-valid.1.2.1: '${ehcache.time-to-live}' is not a valid value for 'integer'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:135)