I want to use the @Value annotation to inject a Double property such as:
@Service public class MyService { @Value(\"${item.priceFactor}\") private D
Try changing the following line
@Value("${item.priceFactor}")
to
@Value("#{new Double('${item.priceFactor}')}")