_connect_java.mdx 602 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
```java title="Native Connection"
{{#include docs-examples/java/src/main/java/com/taos/example/JNIConnectExample.java}}
```

```java title="REST Connection"
{{#include docs-examples/java/src/main/java/com/taos/example/RESTConnectExample.java:main}}
```

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}
{{#include docs-examples/java/src/main/java/com/taos/example/WSConnectExample.java:main}}
```

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