Description of the problem
application.properties file in the Spring Boot IDEA project, suggesting that if the custom attributes as follows:
Cannot resolve configuration property 'xxxx'
2 a solution
In fact, this is a warning, you can ignore, normal operation,
@Value("${}")
Can get to normal values, the most violent method is to close this examination:
to enter the settings Editor -> Inspection -> Spring - > Spring Boot -> Spring Boot application properties, remove the right of the check.
3 solution two (recommended)
Here tips Defind Configuration key a, then press Alt + Shift + Enter, it will create an addtional-spring-configuration-metadata.json file:
Here name is specified attribute name, type is the type, you can specify a default value plus defaultValue :
so there is not warned: