1 Problem Description

In the application.properties file of the Spring Boot project of IDEA, the following information will be displayed if you customize the properties:

Cannot resolve configuration property 'xxxx'
Copy the code

2 Solution 1

This is actually a warning that can be ignored and run normally,

@Value("The ${}")
Copy the code

The value can be obtained normally, but the most violent way is to turn this check off:

3 Solution 2 (Recommended)