bael-5696 quick fix

Using variable instead of fixed value.
This commit is contained in:
Ulisses Lima 2022-10-24 19:06:08 -03:00
parent 3a579f90ff
commit 81a9c85894
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public class HotelService {
}
@CacheEvict(value = "hotels", allEntries = true)
@Scheduled(fixedRateString = "43200")
@Scheduled(fixedRateString = "${caching.spring.hotelListTTL}")
public void emptyHotelsCache() {
logger.info("emptying Hotels cache");
}