# memfire-example-java **Repository Path**: memfire/memfire-example-java ## Basic Information - **Project Name**: memfire-example-java - **Description**: 使用java访问memfire的示例代码 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-28 - **Last Updated**: 2021-02-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 无加密连接 1. 编译 mvn package 2. 启动程序 java -cp postgresql-42.2.18.jar:target/mfsample-1.0.jar com.memfire.sample.apps.MFSample # 加密连接 1. 下载证书,需要包括memfiredb.crt memfiredb.key root.crt 2. 在代码中设置证书信息,见代码 3. 编译 mvn package 4. 启动程序 java -cp postgresql-42.2.18.jar:target/mfsample-1.0.jar com.memfire.sample.apps.MFSSLSample