diff --git a/pom.xml b/pom.xml index 9d29a78..4439a0d 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ utf-8 1.8 1.7.1 - 1.2.60 + 1.3.61 @@ -264,11 +264,11 @@ jodd-props 3.6.1 - - cn.ceres.did - did-sdk - 1.0-SNAPSHOT - + + + + + cn.enncloud.ceres ceres diff --git a/resources/.DS_Store b/resources/.DS_Store new file mode 100644 index 0000000..42b441f Binary files /dev/null and b/resources/.DS_Store differ diff --git a/resources/idea/goland-settings.zip b/resources/idea/goland-settings.zip new file mode 100644 index 0000000..f90aa65 Binary files /dev/null and b/resources/idea/goland-settings.zip differ diff --git a/src/main/java/me/ehlxr/DidSdkTest.java b/src/main/java/me/ehlxr/DidSdkTest.java index 7f7a1c4..77df266 100644 --- a/src/main/java/me/ehlxr/DidSdkTest.java +++ b/src/main/java/me/ehlxr/DidSdkTest.java @@ -1,29 +1,29 @@ package me.ehlxr; - -import cn.ceres.did.client.SdkClient; -import cn.ceres.did.sdk.SdkProto; - -import java.util.concurrent.CountDownLatch; - -/** - * @author ehlxr - */ -public class DidSdkTest { - - public static void main(String[] args) throws Exception { - SdkClient client = new SdkClient("10.19.248.200", 30581); - // SdkClient client = new SdkClient(); - client.init(); - client.start(); - - // client.invokeOneWay(new SdkProto(), 2000); - // System.out.println(client.invokeSync(new SdkProto(), 2000).getDid()); - CountDownLatch countDownLatch = new CountDownLatch(1); - client.invokeAsync(new SdkProto(), 2000, responseFuture -> { - System.out.println(responseFuture.getSdkProto().getDid()); - countDownLatch.countDown(); - }); - countDownLatch.await(); - client.shutdown(); - } -} +// +// import cn.ceres.did.client.SdkClient; +// import cn.ceres.did.sdk.SdkProto; +// +// import java.util.concurrent.CountDownLatch; +// +// /** +// * @author ehlxr +// */ +// public class DidSdkTest { +// +// public static void main(String[] args) throws Exception { +// SdkClient client = new SdkClient("10.19.248.200", 30581); +// // SdkClient client = new SdkClient(); +// client.init(); +// client.start(); +// +// // client.invokeOneWay(new SdkProto(), 2000); +// // System.out.println(client.invokeSync(new SdkProto(), 2000).getDid()); +// CountDownLatch countDownLatch = new CountDownLatch(1); +// client.invokeAsync(new SdkProto(), 2000, responseFuture -> { +// System.out.println(responseFuture.getSdkProto().getDid()); +// countDownLatch.countDown(); +// }); +// countDownLatch.await(); +// client.shutdown(); +// } +// } diff --git a/src/main/java/me/ehlxr/Hello.kt b/src/main/java/me/ehlxr/Hello.kt deleted file mode 100644 index 50532bf..0000000 --- a/src/main/java/me/ehlxr/Hello.kt +++ /dev/null @@ -1,15 +0,0 @@ -package me.ehlxr - -/** - * Created by lixiangrong on 2018/8/17. - */ -fun main(args: Array) { - val strList = listOf("a", "ab", "abc","abcd","abcde","abcdef","abcdefg") - // 非常好用的流式 API filter,flat,map 等等 - strList.forEach{str-> - run { - str.length - println(str) - } - } -}