- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 spring学习笔记(三)
Combining lifecycle mechanismsAs of Spring 2.5, you have three options for controlling bean lifecycle behavior: theInitializingBean and DisposableBean callback interfaces; custominit() anddestro
2013-05-24 23:31:38 1325
转载 CenOS6.0 源码安装vsftpd 配置虚拟用户
#先做些准备工作#查看安装vsftpd需要的基本组件是否安装 #虚拟用户生成密码时需要组件rpm –qa | grep db4#虚拟用户需要使用的组件rpm –qa | grep pam-devel#编译安装时需要使用的组件 rpm –qa | grep gcc#支持tcp_wrappers使用的组件rpm –qa | grep tcp_wrappe
2013-05-24 22:25:59 594
转载 Spring中@Autowired注解、@Resource注解的区别
Spring不但支持自己定义的@Autowired注解,还支持几个由JSR-250规范定义的注解,它们分别是@Resource、@PostConstruct以及@PreDestroy。 @Resource的作用相当于@Autowired,只不过@Autowired按byType自动注入,而@Resource默认按 byName自动注入罢了。@Resource有两个属性是比较重要的,分是nam
2013-05-23 10:15:10 416
转载 java中volatile关键字的含义
在java线程并发处理中,有一个关键字volatile的使用目前存在很大的混淆,以为使用这个关键字,在进行多线程并发处理的时候就可以万事大吉。Java语言是支持多线程的,为了解决线程并发的问题,在语言内部引入了 同步块 和 volatile 关键字机制。 synchronized 同步块大家都比较熟悉,通过 synchronized 关键字来实现,所有加上synchronized
2013-05-22 23:02:13 398
原创 spring学习笔记(二)
5.2 Container overviewThe interface org.springframework.context.ApplicationContext represents the Spring IoC container and is responsible for instantiating, configuring, and assembling the aforement
2013-05-21 22:58:30 920
原创 spring学习笔记(一)
1.2.spring ModulesThe Spring Framework consists of features organized into about 20 modules. These modules are grouped into Core Container, Data Access/Integration, Web, AOP (Aspect Oriented Progr
2013-05-19 09:39:09 1092
转载 Spring中Quartz的配置
Quartz是一个强大的企业级任务调度框架,Spring中继承并简化了Quartz,下面就看看在Spring中怎样配置Quartz:首先我们来写一个被调度的类:package com.kay.quartz;public class QuartzJob{ public void work() { System.out.println("Quart
2013-05-17 16:46:07 409
转载 log4j配置祥解
log4j配置祥解第一步:加入log4j-1.2.8.jar到lib下。第二步:在CLASSPATH下建立log4j.properties。内容如下:1 log4j.rootCategory=INFO, stdout , R23 log4j.appender.stdout=org.apache.log4j.ConsoleAppender4 log4j
2013-05-17 09:29:36 483
lucene0.9.9查看
2010-07-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人