Top "Property-placeholder" questions

@Value annotation type casting to Integer from String

I'm trying to cast the output of a value to an integer: @Value("${api.orders.pingFrequency}") private Integer pingFrequency; The …

java spring casting annotations property-placeholder
Spring @Value TypeMismatchException:Failed to convert value of type 'java.lang.String' to required type 'java.lang.Double'

I want to use the @Value annotation to inject a Double property such as: @Service public class MyService { @Value("${item.…

java spring spring-el spring-properties property-placeholder
In Spring, getting "java.lang.IllegalArgumentException: Could not resolve placeholder" despite having defined "PropertyPlaceholderConfigurer"

I’m using Spring 3.2.11.RELEASE with Maven 3.3. I have this defined in my application context file … <bean id="localPropertyConfigurer" …

spring properties applicationcontext property-placeholder
How to resolve placeholder in properties file with values from another properties file in spring boot application

My spring boot application has below properties files. src/main/resources/config/DEV/env.properties mail.server=dev.mail.domain …

java spring-boot configuration properties-file property-placeholder