2018年6月25日

synchronized和volatile

摘要: 简述synchronized和volatile的区别 1、synchronized可以使用在变量、方法、类级别,而volatile只能使用在变量级别 2、synchronized可以保证变量修改的可见性和原子性,而volatile只能保证变量修改的可见性 3、synchronized有可能造成线程的 阅读全文

posted @ 2018-06-25 22:58 huangzhang 阅读(152) 评论(0) 推荐(0) 编辑

springboot+Zookeeper+Dubbo入门

摘要: 最近想学习dubbo,就利用周末写了一个特别简单的demo,不知道有没有用,先记录一下。 1、安装zookeeper并启动(安装看我上一篇博客https://www.cnblogs.com/huangzhang/p/9219319.html) 2、下载dubbo源码,安装dubbo-admin(安装 阅读全文

posted @ 2018-06-25 22:40 huangzhang 阅读(220) 评论(0) 推荐(0) 编辑

2018年6月23日

zookeeper的安装

摘要: 简单记录一下zookeeper的安装 下载zookeeper安装包,路径:https://download.csdn.net/download/huangzhang_/10495596 也可以到官网去下载:https://zookeeper.apache.org/ 下载完成之后解压到本地,然后到bi 阅读全文

posted @ 2018-06-23 23:56 huangzhang 阅读(105) 评论(0) 推荐(0) 编辑

windows下dubbo-admin的安装

摘要: 本来以为十分钟就能搞定的东西结果搞了一个小时,也是菜到抠脚,赶紧记录一下。 下载dubbo源码,下载地址:https://download.csdn.net/download/huangzhang_/10495603 下载完成解压到本地,然后到incubator-dubbo-2.5.x\dubbo- 阅读全文

posted @ 2018-06-23 23:44 huangzhang 阅读(161) 评论(0) 推荐(0) 编辑

2018年6月22日

The user specified as a definer ('root'@'%') does not exist解决方案

摘要: 今天操作以root身份操作MySQL数据库的时候报出了这个异常: Error updating database. Cause: java.sql.SQLException: The user specified as a definer ('root'@'%') does not exist 问了 阅读全文

posted @ 2018-06-22 18:16 huangzhang 阅读(358) 评论(0) 推荐(0) 编辑

浅谈线程的方法和状态

摘要: Thread方法和状态: 插曲 说到了线程顺便说一下上学时候我搞不清的问题————线程和进程之间的关系: 一个程序运行至少需要一个进程,而一个进程至少需要一个线程,所以线程–>进程–>程序。线程是程序执行流的最小单位,而进程是系统进行资源分配和调度的一个独立单位。 Thread的状态类型 1、新建状 阅读全文

posted @ 2018-06-22 15:06 huangzhang 阅读(116) 评论(0) 推荐(0) 编辑

2018年6月18日

strus2配置strus.xml问题-The content of element type "package" must match "(result-types?,interceptors?

摘要: 搭建strus2项目,在配置strus.xml时候碰到了这个问题: The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-acti 阅读全文

posted @ 2018-06-18 18:21 huangzhang 阅读(136) 评论(0) 推荐(0) 编辑

导航