Try changing the following line
@Value("${item.priceFactor}")
to
@Value("#{new Double('${item.priceFactor}')}")
Related Contents:
- Reading a List from properties file and load with spring annotation @Value
- Spring @Value is not resolving to value from property file
- @Value annotation type casting to Integer from String
- Spring Boot access static resources missing scr/main/resources
- How to fill HashMap from java property file with Spring @Value
- Thymeleaf using path variables to th:href
- How does Spring 3 expression language interact with property placeholders?
- Spring Boot – How to disable @Cacheable during development?
- Difference between and
- When using Spring Security, what is the proper way to obtain current username (i.e. SecurityContext) information in a bean?
- Unable to find a @SpringBootConfiguration when doing a JpaTest
- intellij incorrectly saying no beans of type found for autowired repository
- How to get active user’s UserDetails
- Difference between Interceptor and Filter in Spring MVC
- Is it possible to have empty RequestParam values use the defaultValue?
- Spring get current ApplicationContext
- Spring 4 vs Jersey for REST web services
- Overriding beans in Integration tests
- Where can I download Spring Framework jars without using Maven?
- @Cacheable key on multiple method arguments
- Spring cron expression for every after 30 minutes
- Auto-wiring a List using util schema gives NoSuchBeanDefinitionException
- SpringBoot – making jar files – No auto configuration classes found in META-INF/spring.factories
- JPA: update only specific fields
- Why use/develop Guice, when You have Spring and Dagger? [closed]
- Should you set up database connection properties in server.xml or context.xml
- How to get access to job parameters from ItemReader, in Spring Batch?
- Mockito, JUnit and Spring
- What’s the difference between fixed rate and fixed delay in Spring Scheduled annotation?
- Websocket Authentication and Authorization in Spring
- Utility class in Spring application – should I use static methods or not?
- How do I get a HttpServletRequest in my spring beans?
- How to query data out of the box using Spring data JPA by both Sort and Pageable?
- How can I make Spring WebServices log all SOAP requests?
- Spring Boot, logback and logging.config property
- Get UserDetails object from Security Context in Spring MVC controller
- identity from sql insert via jdbctemplate
- Javascript long integer
- Spring 3.2 @value annotation with pure java configuration does not work, but Environment.getProperty works
- How to disable spring-security login screen?
- Cannot Autowire Service in HandlerInterceptorAdapter [duplicate]
- Hot swapping in Spring Boot
- Spring scheduling task – run only once
- How can I get a Spring bean in a servlet filter?
- How to pass a JSON array as a parameter in URL
- Could not autowire org.springframework.mail.javamail.JavaMailSender
- Spring Maven clean error – The requested profile “pom.xml” could not be activated because it does not exist
- Where “user” comes from in convertAndSendToUser works in SockJS+Spring Websocket?
- JPA Transient Annotation and JSON
- JPA thinks I’m deleting a detached object