```java
{{#include docs-examples/java/src/main/java/com/taos/example/RESTConnectExample.java}}
```

[查看完整程序](https://github.com/taosdata/TDengine/blob/develop/docs-examples/java/src/main/java/com/taos/example/RESTConnectExample.java)