在编辑pom.xml时,第一行有个刺眼红色×,然后在Problems看到这个问题 [ERROR] The build could not read 1 project -> [Help 1]E:\mvn\repo\org\springframework\boot\spring-boot-dependencies\2.1.1.RELEASE 在这里看到解决办法:https://blog.csdn.net/qq_36135335/article/details/86242914 在本地的maven库
cvc-complex-type.2.4.b: The content of element 'servlet' is not complete. One of '{"http:// java.sun.com/xml/ns/javaee":description, "http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon,