Instead of primitives datatype, Use Wrapper Integer/Double/Long class in java to get numeric value
@Value("${restaurant-top-food}") private Integer topBestFood;