_connect_java.mdx 602 字节
Newer Older
1
```java title="Native Connection"
D
dingbo 已提交
2
{{#include docs/examples/java/src/main/java/com/taos/example/JNIConnectExample.java}}
3 4 5
```

```java title="REST Connection"
D
dingbo 已提交
6
{{#include docs/examples/java/src/main/java/com/taos/example/RESTConnectExample.java:main}}
7 8 9 10 11
```

When using REST connection, the feature of bulk pulling can be enabled if the size of resulting data set is huge.

```java title="Enable Bulk Pulling" {4}
D
dingbo 已提交
12
{{#include docs/examples/java/src/main/java/com/taos/example/WSConnectExample.java:main}}
13 14 15
```

More configuration about connection,please refer to [Java Connector](/reference/connector/java)