When I configure the pom.xml dependency, I get red.
Solution:
(1) settings->maven directory:
Change the maven path to your own. The specific operation is in
[Maven] Maven installation & introductory tutorial notes - Programmer Sought
in this article
(2) Right-click pom.xml, select maven, and rebuild the project
It was normal to be red before.