更新时间:2023-01-18 19:00:16
教程 有一段时间没有更新了.本教程仍然引用 JDOM1,而较新版本的 Spring Web 服务仅支持 JDOM2.
The tutorial hasn't been updated for a while. The tutorial still references JDOM1 whereas newer versions of Spring Web Services only support JDOM2.
<dependency>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
<version>1.0</version>
</dependency>
改为
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom</artifactId>
<version>2.0.2</version>
</dependency>
并将 org.jdom
导入更改为 org.jdom2
.
And change the org.jdom
imports to org.jdom2
.