自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 收藏
  • 关注

原创 systemctl start docker失败原因

背景:使用自配置文件 /etc/docker/daemon.jsonsystemctl enable docker.service将docker加入服务 问题:dockerd可以正常启动,但是systemctl start docker.service报错,如图:Job for docker.service failed because the control proces...

2019-01-24 16:55:20 8237

原创 quartz源码分析

Package quartz-coreorg.quartz.QuartzScheduler.java类 QuartzScheduler方法:1. 构造函数public QuartzScheduler(QuartzSchedulerResources resources, long idleWaitTime, @Deprecated long dbRetr

2016-11-06 16:38:29 493

原创 缓存 spring xml配置

Spring 的缓存技术还具备相当的灵活性,不仅能够使用 SpEL(Spring Expression Language)来定义缓存的 key 和各种 condition,还提供开箱即用的缓存临时存储方案,也支持和主流的专业缓存例如 EHCache 集成。id="keyGenerator" class="com.fcore.common.cache.Signature

2016-09-26 13:52:50 1067

原创 mybatis spring xml设置

所有的properties文件在最初入口xml文件中定义。id="configProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> name="locations"> classpath*:*.properties

2016-09-26 13:17:53 502

原创 Spring xml设置

id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> name="properties" ref="configProperties" />id="configProperties" class="org.springframewor

2016-08-29 14:06:12 443

原创 Apache Commons

BCELBeanUtilsArrayConverterBeanComparatorBeanUtilscloneBean(Object bean)即使原bean未实现cloneable,依旧clone。copyProperties(Object dest, Object orig)将src的属性复制到dst,仅对名字相同的属性。浅拷贝。

2016-08-23 17:39:13 323

原创 实用IDEA技巧

1. review 代码展示选项 View -> Enter Presentation Mode2. 代码比较选项 View -> Compare With 与本地,远程文件比较代码。选项 View -> Compare With Clipboard 与一个打开的可编辑记事本比较。3. 查询方法的调用,被调用历史选项 Navigate -> Method H

2016-08-19 15:15:22 1889

原创 Spring配置文件参考

1. Annotation自动扫描-->context:component-scan base-package="com.baidu.fbu.fcore.accounting.loan" />context:component-scan base-package="com.baidu.fbu.fcore.accounting" />context:component-scan ba

2016-08-19 13:15:59 923

原创 MyBatis 简单参考

INSERT例子1. Insertint insert(AccountingEntryEntity accountingEntry);id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.baidu.fbu.fcore.accounting.common.entity.Accoun

2016-08-18 18:10:27 312

原创 PractByzantFaTolece Algo

Practical Byzantine Fault Toleranceand Proactive Recovery3. Service Properties为何 n >= 3f + 1?与分布式系统的RW有关。首先定义一个分布式系统的两种操作:Read,Write。由于f是最大的可容忍宕机数量。因此,当client发出一个W请求后,只需要有n-f个机器响应就代表

2016-08-09 17:33:56 434

转载 C++中的函数指针

转自 http://bbs.chinaunix.net/thread-4135619-1-1.html

2014-10-11 18:47:12 577

转载 Java synchronized

Here are some examples.

2014-10-07 21:20:21 377

原创 hB II Tree

Concepts:Side Pointers: the pointers to sibling nodes.

2014-07-30 16:35:09 535

原创 hadoop 集群安装

资料来自官网  http://hadoop.apache.org/docs/r1.0.4/cn/cluster_setup.html

2014-07-06 18:58:30 466

原创 hadoop2.2.0 ubuntu

2.安装ssh由于Hadoop用ssh通信,先安装ssh[html] view plaincopy~$ sudo apt-get install openssh-server  ssh安装完成以后,先启动服务:[html] view plaincopy~$ sudo /etc/init.d/ssh start   

2014-07-06 09:35:06 504

原创 Install vimgdb

From    http://clewn.sourceforge.net/install.html#vimgdbvimGdb installThis document describes how to install the patch for vimGdb.a) You need: vim-7.2.tar.bz2 Vim 7.2 source tar ba

2014-07-03 21:26:01 420

原创 ubuntu storm

$ sudo apt-get install zookeeper zookeeper-bin zookeeperd

2014-05-13 20:47:37 512

原创 配置Spring+struts2+hibernate时遇到的问题

1. eclipse下无法启动tomcat,一直说遇到问题,报错信息具体如下:java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].St

2013-12-17 10:14:02 679

原创 spring简单介绍

ApplicationContext是Spring的容器,负责管理所有的组件,必须优先加载。有两种方法:1. MVC框架负责创建ApplicationContext实例。2. web.xml文件中加载。对于web.xml加载又有两种方法:利用ServletContextListener或者load-on-startup Servlet实现。由于所有的ServletConte

2013-12-15 20:38:20 534

原创 hibernate4+spring3 一个简单的例子

首先搭建spring的环境。spring的环境搭建非常容易。从官网下载ST,直接安装即可。关键是spring的core jar官网已经不提供下载。这里我们可以从另一个地方下载,http://repo.springsource.org/libs-release-local/org/springframework/spring/3.2.4.RELEASE/spring-

2013-12-15 14:37:35 581

原创 eclipse下简单的配置hibernate4

首先从官网下载hibernate-release-4.2.8.Final。hibernate tools可以直接从eclipse里面安装。具体可以google。hibernate环境搭建完毕之后可以开始配置。1. 配置JDBCeclipse下面,window-preference-DataManagement-Connectivity-DriverDefinitions-A

2013-12-12 13:40:22 903

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除