- 2018-03-31
用思考喂饱生活
房产投资务必要根据城市等级和城市排名从高到低进行选择。房产价值投资的核心就是城市的投资,房产升值的预期就是城市发展的预期。也许你目前还没有跨城市买房的能力,但是你必须要有跨城市买房的意识。因为眼光远远要比能力重要,选择远远要比坚持重要。只有你努力挤进大城市,你的后代才有机会实现阶级的跨越。务必记住一句话:宁买大城市一张床,不买小城市一套房。
- 2018-03-31
summerwhatever
我是一个任性的孩子我想涂去一切不幸我想在大地上画满窗子让所有习惯黑暗的眼睛都习惯光明——顾城图片发自App
- 2018-03-31
独行侠yjq
假如我只有1年的时间可以活,我会去做些什么呢?生命太短暂啦,时间太少啦,谁都不知道明天会发生什么?所以我很忙,我没有时间去惆怅未来,没有时间去猜他人的心思,没有时间去犹豫不决。我要珍惜生命中的每一分钟,我要跟时间赛跑,我要让我人生的每一分钟都有他的意义。我会创造出属于我的生活。
- 2018-03-31
白露白
“得不到的永远在骚动被偏爱的都有恃无恐”——Eason红玫瑰感觉最近寝室养成了一个有趣的习惯,只要有人突然嘴里哼起了歌,过一会不唱了,总有人会不自觉地接着唱下去。默契而不自知,音乐的魅力。晚上吃了烤香鸡饭,¼杯饮料。另加一串烤面筋和一串烤肉串。(ง•̀_•́)夏天好似快到了一般…
- 2018-03-31复习
8a590e918db0
1.oralce高级查询https://mubu.com/doc/2Mqj0kIIvK2.shell编程之变量https://mubu.com/doc/1Q3dZNVWmK3.shell编程之正则表达式https://mubu.com/doc/32ds6r96NK
- 2018-03-31
徐书军
周二分享会感悟本周二下午学习会又迎来了一批新的学员,新的学员上台分各自向感受和体会一个比一个精彩感人。我仿佛又回到了刚学习的时候,一幕幕又清楚地浮现在眼前,做人要感恩,要孝敬父母,关爱家人,对工作要认真,要谦虚不要骄傲,人与人之间要相互沟通理解,该做的事情要主动去做,工作不单单是挣钱,努力工作还可以提高心性,磨练灵魂,使灵魂更高尚,努力工作还能提高一个人的品德心态。经过学习《六项精进》能,不变地改
- 2018-03-31
TA76广新
今天抽空回老家看了家里的茶园。自从父亲走了之后,茶园就没有精心打理了,还好,春暖花开,一切身体生机勃勃。这是父亲生前的一片心血。以后不管有多忙,有时常会来打理这片茶园,凝聚了父亲的辛勤劳作的结果,也是留给我的宝贵财产。图片发自App图片发自App晚上,与一个远道回来的高中同学见了面,交流了近年来各自发展。虽然我们就要奔四的人了,老同学见面还是像年轻时一样,聊发轻狂,无拘无束。无论何时何地,保持一颗
- 2018-03-31
米澜盛若
风起的日子,我梦依然悠悠。在那百花争艳的季节,还是没有抓住你的手。只是江水默默向东流,一去不返梦难留,梦难留,只为梦醒河头解忧愁,我来自江夏鲁湖与涉湖的一个交汇处,挽起衣服还要走上三里路,不相游。
- 2018-03-31
吉光片羽_f970
最后一天,似乎是要写我的搭档。我的搭档坚持写作,每天。写作的时候似乎进入很自由的流动状态。能够流畅的写出很多脑内的声音。最近一直在跟着零极限的方法练习清理,似乎颇有成效。愤怒的部分出现的比第一个月少多了。喜欢换头像。人生的走向,更彻底的偏向十二宫的方向,用占星术语来说的话。这是我粗浅的理解。在这里,似乎没有人愿意呈现某些光鲜的部分,都是很多很多的负面的情绪需要先发泄出来。我自己当然也是如此。我理想
- 随手记
康靖祺姑姑
2018-03-31星期六天气晴昨天康靖祺把数学试卷忘记了,他同学的妈妈跟我说了,今天早上上班之前去了趟学校,保安室的大爷问了以后就开门让我进去拿了,真的太感谢了。一进教室就感觉和上次不一样了,找到试卷以后就看到后边的黑板报换了,换了上次我们做的节约主题的,很激动啊,看到了我做的了教室里很干净整洁,好温馨的感觉。我都想来着上学了,想想我小时候.......我都忘了咋过来的了。哈哈这是我花了一天的时
- 2018-03-31互联网运营的职业发展
Takers
互联网运营的职业发展首先我认为运营的主要目的就是把自身产品和使用人群来建立一个良好的相互关系,在保留现有使用人群的基础上,扩大自身的用户群体,从而达到让产品能够更好的持续发展的目的统称为运营。不同的公司会有对运营者产生极大的影响,大概可以把这些公司分为:早期互联网公司和相对成熟的互联网公司。在早期的互联网公司中,整体的运营工作可能会比较的多,譬如,一个人负责多方面的事务,可能会包括做客服、找合作、
- 2018-03-31
82向日葵
冯丽焦点网络初级七期息县坚持分享第291天今天和姑父聊会天,挺佩服姑父的,姑父虽然没学过心理学,在生活中和与人相处中,也用了很多心理学的知识。他的阅历让他看清世间百态,也给我上了一课,从聊天中也让我学了很多,其中谈到要想让别人尊重你,你首先就要尊重别人,忍字头上一把刀,凡事忍一忍,都过去了。退一步海阔天空,忍一时风平浪静,宰相肚子能撑船……。虽然这些道理以前都知道,可现在体会到姑父真正内化于心了。
- 2018-03-31杨幂回应诈捐事件,承诺一定会弥补过错,网友:先上车,后补票!
吉祥帅康
事实上,最近的“杨幂骗局”就是这样。杨幂在2015年和鹿晗合作主演的电影《我是证人》上映时去成都做宣传。剧中的她饰演一位盲人警察,她在成都当地又了解到这里也有很多盲人学校,所以当场决定要为成都市特殊教育学校的盲人孩子们捐赠100只盲杖和50台盲人打字机。当场,来自成都特殊学校的盲童就为杨幂宣读感谢信,向她表示感谢,但是两年过去了,成都校方依旧没有收到杨幂承诺的捐赠品,并在两年间多次询问中间人,得到
- python 学习笔记3 2018-03-31
我是帅气的石头
一、字典[]中括号定义列表()括号定义元组{}大括号定义字典字典是一个可变容器,可存储任意类型每个键值key=>value对用冒号:分割,每个键值对之间用逗号,分割:d={key1:value1,key2:value2}1,定义方法:dict={'Alice':'2341','Beth':'9102','Cecil':'3258'}x=dict()y=dict(a=1,b=3,c='szm')2,
- 2018-03-31
穆晓芳
前几天觉得外面人比较燥,几乎整天在商场里面转来转去,从一楼到三楼,不管缤谷里面人多人少,不厌其烦反复转。今天和昨天下午在外面感觉不错,搜索走路速度比较慢或者站在一边的顾客,上前去搭讪容易要到资源。
- 2018-03-31
唐潔工坊
九秋风露越窑开,夺得千峰翠色来如向中宵盛沉靡,共稽中散斗遗杯宋·越窑青瓷碗·相近色修复作品欣赏图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App
- 2018-03-31
齐一Seven
“没有什么可以阻挡你变好,当你变好你会想要持续变好”我的第一个半马在一个月内完成目标,有了参加半马的资格!!难捱就对了,委屈就对了,至少你还能体会到情绪翻涌,至少我们还活着不是吗?还有什么是比死让人不能接受的吗?既然活着就好好生活,去做该做的事情,去变好,去勇敢,去尝试你的理想。不要说它遥不可及,一个月前我也觉得21公里遥不可及,可我现在不是做到了吗?对不起,我控制不住我自己的情绪......我不
- 2018-03-31 情绪管理
叶小静Stamy
1为什么需要管理情绪?这一点我想无需我赘述,简而言之:情绪影响的不只是你一个人,还会通过你和周围人的互动,引发一连串的事情。THESUBTLEARTOFNOTGIVINGAFUCK一书的作者曾说:“只有三岁小孩和狗才会把自己的全部生活寄托在自己的情绪上。”这话虽然听起来刺耳,但足以可见管理好情绪的重要性。2为什么可以管理情绪?《大脑的奥秘》一书中,向我们介绍了大脑最基本的工作机制。我们的大脑有三个
- 2018-03-31
宇宙之女_王涵钰
生命陪伴心语系统:(当下)此刻就是我享受爱,体验爱和表达爱的最大机会(过程)深呼吸一,二,三,我看见了我的情绪和想法,这不过是情绪和想法而已,我想要的是什么?那我可以选择什么样的想法和情绪来支持自己达成呢?(事后)这是我生命中独一无二的体验,这个体验都有什么好处呢?今天中心开会,又考虑到婆婆和儿子中午吃饭的事,早晨就开始准备午饭,下午回到家首先看看饭吃完了没有,看到了自己担心,虽然给儿子提前做了安
- 2018-03-31
Life薛理洪
第6期第2课作业如何进行公司背景调查拖了三天才把作业补上,就近选择本地的上市公司:福耀玻璃董事长法人:曹德旺先生,实业家慈善家,网红企业家,以敢说话出名国际领先的汽车玻璃供应商,曾经打赢了美国商务部的反倾销官司,而声名大噪,公司在国内有福清和武汉两家生产基地,在美国和俄罗斯也有生产工厂。公司在A股市场以爱分红出名。
- 2018-03-31
王婷_爱与自由绽放
早晨打坐冥想。可能最近意识松动。允许心底的愤怒出来后,我看到对奶奶的突然离去我对她也是有很多的愤怒的。愤怒她的不告而别。原来我们对一个人一件事的情绪都不是单一的,对奶奶有不舍有恐惧有愤怒。和奶奶的功课是这两年的一个大课题,曾经几次哭到要昏厥,曾经一次次告诉自己她永远和我在一起。但这次的打坐,情绪不一样了,我看到自己的愤怒后,有个声音告诉我,我们都是完美的圣子,是圣子奥体的一部分,我们最后会在天父那
- 2018-03-31
Xici大猫
从宿舍区到教学楼来回是八千步把操场绕个五圈是三千步我享受的却是五八四千米哪有一路平坦也没有终点是一眼就能望穿如果有肯定跟宿舍和教学区一样无趣
- 亲子日记第十二篇 2018-03-31 星期六 天气:晴
n宁n
今天小慧的舅舅、舅妈来我们家做客了,姥爷炖的大骨头、炒的豆角、土豆丝和大火腿肠,我给姥爷做助手,忙的不亦乐乎,一会儿就做好了,马上开吃。小慧也来帮忙拿筷子,舅妈夸她懂事了,舅舅夸她长大了,我偷偷看了看她,脸上笑的乐开了花。
- 2018-03-31
XuelinW
今天风很大,cambrils的风要把人刮飞的感觉。下午回到塔拉,看到了如下情景:图片发自App
- 2018-03-31
雪花_
昨天没有写,实在是太困太累了,十点多就呼呼了,好在烁爸在打游戏,告诉他烁仔醒了喝点奶粉,然后估计我就秒睡了,夜里烁仔醒了几次也不记得,给他吃奶啥时候停的也不清楚。真是累懵圈了,可能就是上了一周的班了,本想中午哄他睡觉,结果烁仔不配合,只好弄着他在屋里玩,让爷奶休息一下的缘故吧!?晚上四家小聚,孩子们可兴奋了,烁爸又当上了超级奶爸。️今天上午去扫墓了,其实也没干啥,还挺累,不过难得没啥事,就决定下厨
- 2018-03-31
寂寞冷少女
三月的最后一天,一本书快看完了。又感到很孤单,什么都没有,无所依凭的孤单。目前来说,进度很慢,并且学习热情不足,效率不高。因为我孤单的很难受,学不进去习了。可是我还得学习
- #能量人生#2018-03-31
化北I六段演讲
晚上好!静暖人生:每日一句正能量[玫瑰][玫瑰][玫瑰](2018年3月31日农历二月十五星期六)欣赏别人其实是少一点挑剔,多一点信任;多一点热情少一点冷漠;多一点仰视少一点鄙夷。欣赏多一点矛盾和误解定会少一点,人与人的距离才会更近一点,不要一味地羡慕人家的绝活与绝招,通过恒久的努力,你也完全可以拥有。因为把一个简单的动作练到出神入化,就是绝招。美好的一天,从静暖人生开始![微笑][微笑][微笑]
- 2018-03-31
晨晖暮雪
5.81公里,50分钟,卷腹300个提高了配速,10+5+35来跑,调整了心率,发现前一段时间的心率不稳,可能只是设备佩戴问题。
- 2018-03-31
南哲玲
2018330打卡目标:全力培养孩子,成为德智体美劳六时书3次与目标相关的好种子:好种子:3个1.今天早上跑步锻练种下了健康的好种子,并发照片到群里鼓励自己激励大家种下健康的好种子!回向给天下所有需要健康的众生及我们共修的伙伴和家人,也特别回向给我家宝宝!2.今天晚上给媳妇用心做了晚餐,南瓜小米粥,炒了特别好吃的豆芽菜!3.今天中午我家宝宝回来了,奶奶开心极啦!一天的陪伴,继续教宝宝五官,宝宝似乎
- 2018-03-31
屠建萍
姓名:屠建萍宁波高天服饰有限公司【日精进打卡第4天】【知~学习】《六项精进》3遍,共15遍《大学》3遍,共15遍【经典名句分享】【行~实践】一、修身:1.继续看活法这本书,2.今天和女儿去游泳了,还一起报名学习游泳课程,虽然会游,但是没有标准的姿势,还是需要认真地学习一下。二、齐家:(对家庭和家人)1.今天儿子回家了,月考的成绩也出来了,值得表演的是数学考了全班第一,但是其余课程都不是很理想,可总
- java类加载顺序
3213213333332132
java
package com.demo;
/**
* @Description 类加载顺序
* @author FuJianyong
* 2015-2-6上午11:21:37
*/
public class ClassLoaderSequence {
String s1 = "成员属性";
static String s2 = "
- Hibernate与mybitas的比较
BlueSkator
sqlHibernate框架ibatisorm
第一章 Hibernate与MyBatis
Hibernate 是当前最流行的O/R mapping框架,它出身于sf.net,现在已经成为Jboss的一部分。 Mybatis 是另外一种优秀的O/R mapping框架。目前属于apache的一个子项目。
MyBatis 参考资料官网:http:
- php多维数组排序以及实际工作中的应用
dcj3sjt126com
PHPusortuasort
自定义排序函数返回false或负数意味着第一个参数应该排在第二个参数的前面, 正数或true反之, 0相等usort不保存键名uasort 键名会保存下来uksort 排序是对键名进行的
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8&q
- DOM改变字体大小
周华华
前端
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml&q
- c3p0的配置
g21121
c3p0
c3p0是一个开源的JDBC连接池,它实现了数据源和JNDI绑定,支持JDBC3规范和JDBC2的标准扩展。c3p0的下载地址是:http://sourceforge.net/projects/c3p0/这里可以下载到c3p0最新版本。
以在spring中配置dataSource为例:
<!-- spring加载资源文件 -->
<bean name="prope
- Java获取工程路径的几种方法
510888780
java
第一种:
File f = new File(this.getClass().getResource("/").getPath());
System.out.println(f);
结果:
C:\Documents%20and%20Settings\Administrator\workspace\projectName\bin
获取当前类的所在工程路径;
如果不加“
- 在类Unix系统下实现SSH免密码登录服务器
Harry642
免密ssh
1.客户机
(1)执行ssh-keygen -t rsa -C "
[email protected]"生成公钥,xxx为自定义大email地址
(2)执行scp ~/.ssh/id_rsa.pub root@xxxxxxxxx:/tmp将公钥拷贝到服务器上,xxx为服务器地址
(3)执行cat
- Java新手入门的30个基本概念一
aijuans
javajava 入门新手
在我们学习Java的过程中,掌握其中的基本概念对我们的学习无论是J2SE,J2EE,J2ME都是很重要的,J2SE是Java的基础,所以有必要对其中的基本概念做以归纳,以便大家在以后的学习过程中更好的理解java的精髓,在此我总结了30条基本的概念。 Java概述: 目前Java主要应用于中间件的开发(middleware)---处理客户机于服务器之间的通信技术,早期的实践证明,Java不适合
- Memcached for windows 简单介绍
antlove
javaWebwindowscachememcached
1. 安装memcached server
a. 下载memcached-1.2.6-win32-bin.zip
b. 解压缩,dos 窗口切换到 memcached.exe所在目录,运行memcached.exe -d install
c.启动memcached Server,直接在dos窗口键入 net start "memcached Server&quo
- 数据库对象的视图和索引
百合不是茶
索引oeacle数据库视图
视图
视图是从一个表或视图导出的表,也可以是从多个表或视图导出的表。视图是一个虚表,数据库不对视图所对应的数据进行实际存储,只存储视图的定义,对视图的数据进行操作时,只能将字段定义为视图,不能将具体的数据定义为视图
为什么oracle需要视图;
&
- Mockito(一) --入门篇
bijian1013
持续集成mockito单元测试
Mockito是一个针对Java的mocking框架,它与EasyMock和jMock很相似,但是通过在执行后校验什么已经被调用,它消除了对期望 行为(expectations)的需要。其它的mocking库需要你在执行前记录期望行为(expectations),而这导致了丑陋的初始化代码。
&nb
- 精通Oracle10编程SQL(5)SQL函数
bijian1013
oracle数据库plsql
/*
* SQL函数
*/
--数字函数
--ABS(n):返回数字n的绝对值
declare
v_abs number(6,2);
begin
v_abs:=abs(&no);
dbms_output.put_line('绝对值:'||v_abs);
end;
--ACOS(n):返回数字n的反余弦值,输入值的范围是-1~1,输出值的单位为弧度
- 【Log4j一】Log4j总体介绍
bit1129
log4j
Log4j组件:Logger、Appender、Layout
Log4j核心包含三个组件:logger、appender和layout。这三个组件协作提供日志功能:
日志的输出目标
日志的输出格式
日志的输出级别(是否抑制日志的输出)
logger继承特性
A logger is said to be an ancestor of anothe
- Java IO笔记
白糖_
java
public static void main(String[] args) throws IOException {
//输入流
InputStream in = Test.class.getResourceAsStream("/test");
InputStreamReader isr = new InputStreamReader(in);
Bu
- Docker 监控
ronin47
docker监控
目前项目内部署了docker,于是涉及到关于监控的事情,参考一些经典实例以及一些自己的想法,总结一下思路。 1、关于监控的内容 监控宿主机本身
监控宿主机本身还是比较简单的,同其他服务器监控类似,对cpu、network、io、disk等做通用的检查,这里不再细说。
额外的,因为是docker的
- java-顺时针打印图形
bylijinnan
java
一个画图程序 要求打印出:
1.int i=5;
2.1 2 3 4 5
3.16 17 18 19 6
4.15 24 25 20 7
5.14 23 22 21 8
6.13 12 11 10 9
7.
8.int i=6
9.1 2 3 4 5 6
10.20 21 22 23 24 7
11.19
- 关于iReport汉化版强制使用英文的配置方法
Kai_Ge
iReport汉化英文版
对于那些具有强迫症的工程师来说,软件汉化固然好用,但是汉化不完整却极为头疼,本方法针对iReport汉化不完整的情况,强制使用英文版,方法如下:
在 iReport 安装路径下的 etc/ireport.conf 里增加红色部分启动参数,即可变为英文版。
# ${HOME} will be replaced by user home directory accordin
- [并行计算]论宇宙的可计算性
comsci
并行计算
现在我们知道,一个涡旋系统具有并行计算能力.按照自然运动理论,这个系统也同时具有存储能力,同时具备计算和存储能力的系统,在某种条件下一般都会产生意识......
那么,这种概念让我们推论出一个结论
&nb
- 用OpenGL实现无限循环的coverflow
dai_lm
androidcoverflow
网上找了很久,都是用Gallery实现的,效果不是很满意,结果发现这个用OpenGL实现的,稍微修改了一下源码,实现了无限循环功能
源码地址:
https://github.com/jackfengji/glcoverflow
public class CoverFlowOpenGL extends GLSurfaceView implements
GLSurfaceV
- JAVA数据计算的几个解决方案1
datamachine
javaHibernate计算
老大丢过来的软件跑了10天,摸到点门道,正好跟以前攒的私房有关联,整理存档。
-----------------------------华丽的分割线-------------------------------------
数据计算层是指介于数据存储和应用程序之间,负责计算数据存储层的数据,并将计算结果返回应用程序的层次。J
&nbs
- 简单的用户授权系统,利用给user表添加一个字段标识管理员的方式
dcj3sjt126com
yii
怎么创建一个简单的(非 RBAC)用户授权系统
通过查看论坛,我发现这是一个常见的问题,所以我决定写这篇文章。
本文只包括授权系统.假设你已经知道怎么创建身份验证系统(登录)。 数据库
首先在 user 表创建一个新的字段(integer 类型),字段名 'accessLevel',它定义了用户的访问权限 扩展 CWebUser 类
在配置文件(一般为 protecte
- 未选之路
dcj3sjt126com
诗
作者:罗伯特*费罗斯特
黄色的树林里分出两条路,
可惜我不能同时去涉足,
我在那路口久久伫立,
我向着一条路极目望去,
直到它消失在丛林深处.
但我却选了另外一条路,
它荒草萋萋,十分幽寂;
显得更诱人,更美丽,
虽然在这两条小路上,
都很少留下旅人的足迹.
那天清晨落叶满地,
两条路都未见脚印痕迹.
呵,留下一条路等改日再
- Java处理15位身份证变18位
蕃薯耀
18位身份证变15位15位身份证变18位身份证转换
15位身份证变18位,18位身份证变15位
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
蕃薯耀 201
- SpringMVC4零配置--应用上下文配置【AppConfig】
hanqunfeng
springmvc4
从spring3.0开始,Spring将JavaConfig整合到核心模块,普通的POJO只需要标注@Configuration注解,就可以成为spring配置类,并通过在方法上标注@Bean注解的方式注入bean。
Xml配置和Java类配置对比如下:
applicationContext-AppConfig.xml
<!-- 激活自动代理功能 参看:
- Android中webview跟JAVASCRIPT中的交互
jackyrong
JavaScripthtmlandroid脚本
在android的应用程序中,可以直接调用webview中的javascript代码,而webview中的javascript代码,也可以去调用ANDROID应用程序(也就是JAVA部分的代码).下面举例说明之:
1 JAVASCRIPT脚本调用android程序
要在webview中,调用addJavascriptInterface(OBJ,int
- 8个最佳Web开发资源推荐
lampcy
编程Web程序员
Web开发对程序员来说是一项较为复杂的工作,程序员需要快速地满足用户需求。如今很多的在线资源可以给程序员提供帮助,比如指导手册、在线课程和一些参考资料,而且这些资源基本都是免费和适合初学者的。无论你是需要选择一门新的编程语言,或是了解最新的标准,还是需要从其他地方找到一些灵感,我们这里为你整理了一些很好的Web开发资源,帮助你更成功地进行Web开发。
这里列出10个最佳Web开发资源,它们都是受
- 架构师之面试------jdk的hashMap实现
nannan408
HashMap
1.前言。
如题。
2.详述。
(1)hashMap算法就是数组链表。数组存放的元素是键值对。jdk通过移位算法(其实也就是简单的加乘算法),如下代码来生成数组下标(生成后indexFor一下就成下标了)。
static int hash(int h)
{
h ^= (h >>> 20) ^ (h >>>
- html禁止清除input文本输入缓存
Rainbow702
html缓存input输入框change
多数浏览器默认会缓存input的值,只有使用ctl+F5强制刷新的才可以清除缓存记录。
如果不想让浏览器缓存input的值,有2种方法:
方法一: 在不想使用缓存的input中添加 autocomplete="off";
<input type="text" autocomplete="off" n
- POJO和JavaBean的区别和联系
tjmljw
POJOjava beans
POJO 和JavaBean是我们常见的两个关键字,一般容易混淆,POJO全称是Plain Ordinary Java Object / Pure Old Java Object,中文可以翻译成:普通Java类,具有一部分getter/setter方法的那种类就可以称作POJO,但是JavaBean则比 POJO复杂很多, Java Bean 是可复用的组件,对 Java Bean 并没有严格的规
- java中单例的五种写法
liuxiaoling
java单例
/**
* 单例模式的五种写法:
* 1、懒汉
* 2、恶汉
* 3、静态内部类
* 4、枚举
* 5、双重校验锁
*/
/**
* 五、 双重校验锁,在当前的内存模型中无效
*/
class LockSingleton
{
private volatile static LockSingleton singleton;
pri