IDEA prompts that the symbol cannot be found

Today I used git to get the latest project branch code, opened the project with IDEA, and after importing maven dependencies, there was still a red wavy line error. I re-imported it several times, but the problem was still unsolved. It kept saying that the symbol could not be found. Finally, in the team With the help of Daniel, it was found that it was a problem with the character encoding setting of the development tool. After the modification, the problem was solved. Here I will share the solution:

File-"settings-"Editor-"File Encodings-Find the encoding settings, make sure that several settings in the figure are UTF-8, and the compilation is successful.

Guess you like

Origin blog.csdn.net/HaoNanEr1989/article/details/117674520