会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
abdcef
每一份努力都值得期望,每一个梦想都值得灌溉。
博客园
首页
新随笔
联系
订阅
管理
2018年8月29日
Mybatis 一对一查询
摘要: 需求:实体是blog 和author 关系是一对一,查询 blog 以及 blog 的作者信息 嵌套查询 xml select from blog where bid = {id, jdbcType=INTEGER}
阅读全文
posted @ 2018-08-29 23:35 abdcef
阅读(276)
评论(0)
推荐(0)
2018年8月9日
接收int数组,找到重复的值及其索引,并在按照指定的格式打印
摘要: 打印的格式如下: 值:2,位于: 3,6,9 值:2,位于: 3,6,9 值:2,位于: 3,6,9 .................................... public static void main(String[] args) { int[] nums = {12, 18,
阅读全文
posted @ 2018-08-09 19:12 abdcef
阅读(199)
评论(0)
推荐(0)
java 打印杨辉(帕斯卡三角形)等腰三角形
摘要: package com.chuang; public class YangHui2 { public static void main(String[] args) { //二维数组存储杨辉三角形的数据 int[][] arr = new int[10][10]; for (int x = 0; x
阅读全文
posted @ 2018-08-09 17:31 abdcef
阅读(772)
评论(0)
推荐(0)
2018年7月20日
zoo_sample.cfg
摘要: tickTime=2000 : Zookeeper中最小时间单位长度(ms) initLimit=10: Follower在启动过程中,会从Leader同步所有最新数据,然后确定自己能够对外服务的 起始状态,Leader允许Follower在 initLimit 时间内完成这个工作。 syncLim
阅读全文
posted @ 2018-07-20 15:56 abdcef
阅读(300)
评论(0)
推荐(0)
2018年6月30日
linux 下在安装redis 踩过的坑
摘要: 第一步: tar -zxvf redis-4.0.10.tar.gz 第二部: cd redis-4.0.10 目录 执行 make 编译 结果报错: 原因: 需要依赖三个包 解决: 依次安装 : yum install gcc yum install gcc-c++ yum install tcl
阅读全文
posted @ 2018-06-30 17:33 abdcef
阅读(126)
评论(0)
推荐(0)
linux 下安装lua
摘要: 步骤一.编译源码 make linux 结果报错: 原因: 缺少libreadline-dev依赖包 解决办法:yum install readline-devel 即可 步骤二: make install 步骤三: 如图 安装成功
阅读全文
posted @ 2018-06-30 15:29 abdcef
阅读(153)
评论(0)
推荐(0)
2018年6月20日
zk集群搭建
摘要: 第一步:修改配置文件 cp zoo_sample.cfg zoo.cfg 末尾添加 server.1=192.168.25.129:2888:3181 server.2=192.168.25.130:2888:3181 server.3=192.168.25.131:2888:3181 server
阅读全文
posted @ 2018-06-20 20:31 abdcef
阅读(135)
评论(0)
推荐(0)
公告