更新时间:2023-01-10 14:19:43
在模块定义中,在 src / org / example / module-info.java
中找到(基于您的包名),您需要将依赖项添加到 java。 net.http
包,它包含在 java.httpclient
模块中:
In your module definition, located (based on your package name) in src/org/example/module-info.java
, you need to add the dependency to the java.net.http
package, which is included in the java.httpclient
module:
module org.example {
requires java.httpclient;
}
您可以在模块摘要。