Spring @Value TypeMismatchException:Failed to convert value of type ‘java.lang.String’ to required type ‘java.lang.Double’ July 23, 2023 by Tarik Try changing the following line @Value("${item.priceFactor}") to @Value("#{new Double('${item.priceFactor}')}")