@Value annotation type casting to Integer from String

Assuming you have a properties file on your classpath that contains api.orders.pingFrequency=4 I tried inside a @Controller @Controller public class MyController { @Value(“${api.orders.pingFrequency}”) private Integer pingFrequency; … } With my servlet context containing : <context:property-placeholder location=”classpath:myprops.properties” /> It worked perfectly. So either your property is not an integer type, you don’t have the property placeholder … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)