自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 问答 (1)
  • 收藏
  • 关注

原创 select2 清空数据

 select2.js 没有清空数据的API,下面的方法可以间接的提供该功能。$('#memberKey').select2('data', null);  

2014-12-17 11:45:26 1021

原创 Spring JUnit 的单测中如何获取当前spring的ApplicationContext上下文

我在写单测的时候(spring环境下的单元测试)想获得当前spring的ApplicationContext上下文。我是这样实现的:import org.junit.Assert;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.BeansException...

2014-12-11 14:48:33 2896

原创 Spring使用@Autowired不能注入BlockingQueue的问题

 今天遇到一个问题,使用spring4配置BlockingQueue,在Java代码里面使用@Autowired注释方式注入该BlockingQueue,一直报错。我的代码如下: @Autowired private BlockingQueue<CoreTask> alarmInnerQueue; 我的XML如下:<bean id="a...

2014-12-09 14:25:53 681

原创 Spring如何注入Date类型的变量

 地址: http://k2java.blogspot.com/2011/04/spring-how-to-pass-date-into-bean.html Thursday, April 14, 2011Spring – How to pass a Date into bean property (CustomDateEditor )Simple method may n...

2014-12-09 13:59:35 733

原创 Netty4 httpserver

/** * <pre> * AjaxResult.java * @author kanpiaoxue<br> * @version 1.0 * Create Time 2014年12月4日 下午6:01:05<br> * Description : ajax请求结果 * </pre> */public class...

2014-12-04 19:12:26 121

空空如也

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

TA关注的人

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