# polaris-demo **Repository Path**: mygiteepolaris/polaris-demo ## Basic Information - **Project Name**: polaris-demo - **Description**: 包含各类java代码案例。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-08 - **Last Updated**: 2021-12-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # polaris-demo #### 介绍 个人示例仓库 #### Git 全局设置: ```shell git config --global user.name "mygiteepolaris" git config --global user.email "450733605@qq.com" ``` #### 创建 git 仓库: ```shell mkdir polaris-demo cd polaris-demo git init touch README.md git add README.md git commit -m "first commit" git remote add origin https://gitee.com/mygiteepolaris/polaris-demo.git git push -u origin master ``` #### 已有仓库? ```shell cd existing_git_repo git remote add origin https://gitee.com/mygiteepolaris/polaris-demo.git git push -u origin master ``` #### 示例说明 ##### parallel-batch-* ###### 1. org.polaris.demo.example.zk.ZNodeOperationTest ```text ZNode基本操作,CRUD,级联创建节点、级联删除节点等。 ``` ###### 2. org.polaris.demo.example.pdf.PdfExportTest ```text 使用jasper模板合成pdf。 ``` ###### 3. org.polaris.demo.example.simple.SubmitJobMain ```text 批量合成pdf ``` ###### 4. org.polaris.demo.example.seal.SubmitJobMain ```text 对上述合成的pdf进行批量电子签章 ``` ###### 5. org.polaris.demo.example.compound.SubmitJobMain ```text 对上述签章的pdf进行合并 ``` ###### 6. org.polaris.demo.example.signature.SignOnPdfCommMain ```text pdf签名(盖章 & 签名) ``` ##### dingtalk-webhook-* (参考:https://www.yuque.com/polaris-docs/knowledge/dingtalk-webhook) ###### 1. org.polaris.dingtalk.webhook.SendMsgToDingtalkHttpClient ```text 应用程序通过机器人向钉钉群发送消息(HttpClient) ``` ###### 2. org.polaris.dingtalk.webhook.SendMsgToDingtalkOkHttp ```text 应用程序通过机器人向钉钉群发送消息(OkHttp) ``` ###### 3. org.polaris.dingtalk.webhook.SendMsgToDingtalkSDK ```text 应用程序通过机器人向钉钉群发送消息(dingtalk SDK,可支持markdown格式) ``` ##### zookeeper-api-demo (参考:https://www.yuque.com/polaris-docs/bigdata/zookeeper-api) ###### 1. org.polaris.demo.zookeeper.dynamic.Distribute{Client,Server} ```text 服务动态上下线监控 ``` ###### 2. org.polaris.demo.zookeeper.lock.official.DistributedLock ```text 分布式锁(原生) ``` ###### 3. org.polaris.demo.zookeeper.lock.curator.DistributedLock ```text 分布式锁(Curator) ```