I have tried using
@Value("#{'${white.listed.hotel.ids}'.split(',')}")
private Set<String> fareAlertwhiteListedHotelIds;
but When white.listed.hotel.ids is empty then also set has one size with blank value.
white.listed.hotel.ids =
Can someone pls help me with a version in which whiteListedHotelIds can contain either values if specified in property file or has no item for blank case.