Element 'dependency' cannot have character [children], because the type's co

163 阅读1分钟

以为pom文件中我复制了别的地方的
编码有问题的:

<dependency>
              <groupId>javax.servlet</groupId>
              <artifactId>javax.servlet-api</artifactId>
               
        </dependency>

这种引用文件,里边的缩进空格或者是符号<>/啥的格式不对,最好是手打一边或者复制好的
正确的:

<dependency>
  <groupId>javax.servlet</groupId>
    <artifactId>jstl</artifactId>
</dependency>