**Note:** our applications are console programs; therefore, we close the connection at the end of the program. In web applications, the connections should be reused.
> **注意**:我们的应用程序是控制台程序; 因此,我们在程序结束时关闭连接。 在 Web 应用程序中,应重新使用连接。
**Ad** Pro Tip : Easily access your essential developer tools such emulators etc. by loading them onto cloud [hosted citrix xendesktop](https://www.clouddesktoponline.com/citrix-xen-desktop/) with add-ons such as [Office 365 Enterprise E5](https://www.o365cloudexperts.com/office-365-e5/) suite for enhanced team productivity.
**Note:** In the past, `FileReader` relied on the default platform's encoding. Since Java 11, the issue was corrected. It is possible now to explicitly specify the encoding.
Whois 是基于 TCP 的面向事务的查询/响应协议,被广泛用于向互联网用户提供信息服务。 它用于查询域名或 IP 地址块所有者等信息。
**Note:** Most whois servers provide only limited information (for instance only for selected domain names) and the information about owners is often anonymized by domain registrars.
**Note:** our applications are console programs; therefore, we close the connection at the end of the program. In web applications, the connections should be reused.
> **注意**:我们的应用程序是控制台程序; 因此,我们在程序结束时关闭连接。 在 Web 应用程序中,应重新使用连接。
**Note:** Gmail is not ideal for testing applications. We should use an online service such as Mailtrap or Mailgun, or use an SMTP server provided by a webhosting company.
**Note:** The following examples demonstrate how the exceptions work in Python. It is more straightforward to ensure that the divisor is not zero rather than catch `ZeroDivisionError`.
**Note:** If a class does not define an `__eq__()` method it should not define a `__hash__()` operation either; if it defines `__eq__()` but not `__hash__()`, its instances will not be usable as items in hashable collections.
**Note:** In Java enterprise applications it is a good practice to define a service layer that works with repositories. For simplicity reasons, we skip the service layer.
**Note:** In Java enterprise applications it is a good practice to define a service layer that works with repositories. For simplicity reasons, we skip the service layer.
**Note:** In Java enterprise applications it is a good practice to define a service layer that works with repositories. For simplicity reasons, we skip the service layer.
**Note:** In Java enterprise applications it is a good practice to define a service layer that works with repositories. For simplicity reasons, we skip the service layer.
@@ -30,7 +30,7 @@ Spring 反应式是一个反应式库,用于根据反应式流规范在 JVM
在以下应用中,我们对 MongoDB 数据库使用反应式编程。
**Note:** by default, without any specific configuration, Spring Boot attempts to connect to a locally hosted instance of MongoDB, using the `test` database name.
**Note:** In Java enterprise applications it is a good practice to define a service layer that works with repositories. For simplicity reasons, we skip the service layer.
HTTP 定义了一组请求方法,以指示要对给定资源执行的所需操作。 GET 请求用于从指定资源请求数据。 使用 GET 的请求应仅检索数据,而对数据没有其他影响。
**Note:** The purpose and impact of the HTTP methods is a recommendation; these are not strict rules. This is why we said earlier that GET method should not have effect on data. In practice, this is not always followed.
> **注意**:建议使用 HTTP 方法的目的和影响; 这些不是严格的规则。 这就是我们前面说过 GET 方法不应对数据产生影响的原因。 实际上,这并不总是遵循的。
`get_request.php`
...
...
@@ -51,7 +51,7 @@ echo $content . "\n";
该示例创建`HttpClient`,并向指定的网页发出 GET 请求。
**Note:** Responses are always asynchronous, so that the call to the method returns immediately instead of waiting to receive the response. There are blocking methods such as `getStatusCode()` and `getContent()`, which wait until the full response contents are received.