摘要: 这个例子是自己写的,当然也是参照官方的文档,没有spring, 也没有spring boot. 就是普通的main()函数执行。 既然feign是http client, 肯定要有一个server, server是普通的spring boot的 RestController: server proj 阅读全文
posted @ 2018-06-04 00:00 北极熊129 阅读(2314) 评论(0) 推荐(1) 编辑
摘要: trie 阅读全文
posted @ 2018-05-17 14:36 北极熊129 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 动态修改annotation 阅读全文
posted @ 2018-05-15 11:49 北极熊129 阅读(9232) 评论(4) 推荐(0) 编辑
摘要: 本文记载下了golang插件的用法, 原文: https://code.tutsplus.com/tutorials/writing-plugins-in-go--cms-29101 这个例子使用了两个排序: 快速排序和冒泡排序,不追求算法的高效,只为了说明插件的生成和使用。 而且只在linux下, 阅读全文
posted @ 2018-05-05 17:24 北极熊129 阅读(914) 评论(0) 推荐(0) 编辑
摘要: kakfa官网上的几个例子: 环境: kafka集群, eclipse(win10) pom.xml 一. Pipe 这个例子的功能就是从streams-plaintext-input输入文本, 然后我们写的代码将输入的文本转到streams-pipe-output. streams-plainte 阅读全文
posted @ 2018-03-28 01:17 北极熊129 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 最近研究netty, 做了一个测试. 环境: laptop一台(4核8G),vmware虚拟4台vm(centos 7.3) 192.168.1.125 (4核2G) 192.168.1.121 (2核1G) 192.168.1.122 (2核1G) 192.168.1.123 (2核1G) 服务端 阅读全文
posted @ 2018-03-23 13:23 北极熊129 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 准备: 4台vm (centos 7.3): 一. 在node1,node2,node3安装mariadb, mariadb-server (以root用户安装) 1. yum安装 2. 启动服务 开机启动 3. 配置管理员密码 4. 配置远程访问 (mysql提示符以 mysql>表示) 二.配置 阅读全文
posted @ 2018-03-22 00:14 北极熊129 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 前言: 按照kafka的文档,搭建一个三个host的集群。当然和kafka的文档还是有区别的: 1). 未使用kafka自带的zookeeper 2). kafka文档是一个host的三个进程, 这里是使用三个host(vm),每个host运行一个kafka 准备: 三个vm,分别为node1, n 阅读全文
posted @ 2018-03-18 00:25 北极熊129 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Heap is a special case of balanced binary tree data structure where the root-node key is compared with its children and arranged accordingly.If 'a' ha 阅读全文
posted @ 2018-03-11 21:58 北极熊129 阅读(389) 评论(0) 推荐(0) 编辑
摘要: TermsPath - Path refers to the sequence of nodes along the edges of a treeRoot - The node at the top of the tree is called root. . There is ONLY one r 阅读全文
posted @ 2018-03-11 19:50 北极熊129 阅读(161) 评论(0) 推荐(0) 编辑