自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Parse-轻松构建移动APP的后台服务(2)

Parse支持的数据类型目前Parse的table column支持NSString, NSNumber, NSDate, NSData, 或者另外一个PFObject。同时也可以使用NSDictionary and NSArray保存结构化的数据。其中NSArray 支持相对应的查询。虽然可以使用NSData保存二进制数据,但是推荐先使用PFFile保存文件,比如照片等,而在对应的c...

2012-08-17 12:46:29 147

原创 Parse-轻松构建移动APP的后台服务(1)

目前正在开发的产品告一段落,有时间总结下经验,也顺便分享一下我们主要使用的平台-Parse。什么是Parse?Parse是一群美国人开发的专为移动APP服务的云计算平台,与现有的其他云计算平台相比,Parse除了提供Restful的service 之外,也提供了官方的iOS和Android SDK。个人认为高质量的client端SDK是Parse区分与其他云服务的核心优势。为什么呢?看...

2012-08-17 12:42:53 177

原创 Useful ios link

Table view:http://www.cocoachina.com/bbs/read.php?tid=103145动画效果:http://pro.ctlok.com/2010/03/iphone-uiview.htmlhttp://blog.csdn.net/xiaoguan2008/article/details/6291425Cocos2d-x:htt...

2012-05-15 13:31:32 100

Spring AOP

[code="xml"] [/code]

2009-10-09 22:22:50 92

程序员的乐趣

C/C++语言是有趣的,因为它是“计算机科学”发展的产物。 Python和Ruby是有趣的,因为它是“天才”的产物,尽管Ruby的作者是个日本人。 与之不同的是很多程序员认为Java是无趣的。 Java是软件工程发展的产物,当“编程”遇上“快速生产”和“工程”的时候,乐趣就开始退化了。Java通过理念、框架、规范、中间件等等...

2009-09-20 21:31:19 126

Maven configruation sample with codehaus and surefile

[code="xml"] 4.0.0 tools CodeGenerator 0.0.1-SNAPSHOT CodeGenerator org.apache.maven.plugins maven-compiler-plugin ${compileSource} ${compileSour...

2009-07-19 22:46:00 92

Customized JSF Tags

[code="xml"] Some replacements for the standard renderers Replacement renderer for h:outputLabel javax.faces.Output javax.faces.Label ...

2009-07-02 00:20:42 89

Exception Handle

[code="java"]import org.springframework.webflow.engine.RequestControlContext;import org.springframework.webflow.engine.support.TransitionExecutingFlowExecutionExceptionHandler;import org.springf...

2009-04-19 12:57:41 194

Velocity Sample

[code="java"]/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informat...

2009-04-15 00:37:36 124

Dozer Sample

Configurable dozer converter:[code="java"]public class BalanceConverter implements ConfigurableCustomConverter { public Object convert(Object destinationFieldValue, Object sourceFieldValue,...

2009-04-14 01:07:45 120

JSF Special Code

[b][/b]Logging phaselistener:[code="java"]public class RequestLoggingPhaseListener implements PhaseListener { private Log logger = LogFactory.getLog(RequestLoggingPhaseListener.class); p...

2009-03-17 00:12:54 108

javascript

[b]Javascript menu[/b][code="javascript"] function loadOptionTabsMenu() { var current = document.location.toString(); $('.options-tabs ul li a').each(function() { ...

2009-03-05 23:56:22 93

Maven

[code="xml"] org.apache.maven.plugins maven-checkstyle-plugin 2.3 checkstyle.xml [/code][b]Maven and AN...

2009-03-04 22:58:46 93

Spring Special Configuration

[b]PropertyPlaceholderConfigurer[/b][code="java"] classpath:com/foo/jdbc.properties jdbc.driverClassName=org.hsqldb.jdbcDriverjdbc.url=jdb...

2009-03-03 09:05:38 136

Spring Special Code

[b]Set flow and menu item mapping[/b][code="java"] public void setLocationMaps(MenuComponent[] menuComponents) { for (MenuComponent menuComponent: menuComponents) { if...

2009-03-03 09:04:39 261

Struts - menu permission

[code="xml"] ...

2009-03-03 01:07:56 251

Struts - Menu

[b]DisplayerMapping[/b][code="xml"]/* * MenuDisplayerMapping.java * * Created on February 6, 2001, 5:24 PM */package net.sf.navigator.displayer;import java.io.Serializable;/** ...

2009-03-03 01:02:27 143

Unit Testing

[b]Spring Annotation for Junit[/b][code="java"]@RunWith(SpringJUnit4ClassRunner.class)//specifies the Spring configuration to load for this test fixture@ContextConfiguration(locations={"/ser...

2009-03-02 23:21:13 72

Base Class Sample

[code="java"] protected final transient Log log = LogFactory.getLog(getClass());[/code][code="xml"] ...

2009-02-28 12:54:49 98

原创 Spring request/session scope bean

Being able to define a bean scoped to a HTTP request or Session (or indeed a custom scope of your own devising) is all very well, but one of the main value-adds of the Spring IoC container is that it ...

2009-02-27 22:10:14 89

Spring的httpsession管理问题?

现在的有这样一个需求,有一个基于spring mvc的 web application,出于一些理由需要每一层的对象包括service, dao甚至 logger类都要能取到httpsession对象,不知道有什么好的方法?我现在想到的是用dependency injection把session对象注入到每个对象,但是显然不是个很好的设计,隐约记得spring里有个interceptor类实现...

2008-10-17 23:15:39 181

hibernate 如何部分更新需要的字段而不是所有的?

比如created_user,created_time等字段,只在insert时有用,在用saveorupdate()更新时,pojo中没有值的字段hibernate 也会去更新,有没有办法让hibernate只更新需要的字段,其他的字段保持数据库原有值不变。...

2007-04-11 09:22:56 200

hibernate多对多关联的一个问题

有这样两张表,部门和雇员需求:1 每个部门有多个雇员; 2 雇员只能同时属于一个部门; 3 雇员所属部门可以改变,但是需要保留部门变化的历史记录。我有点困惑,似乎应该使用双向多对多关联,但是这样的话我不知道怎么样才可以确定雇员当前的部门。或者还有什么更好的方案,多谢。...

2007-03-31 11:14:34 64

空空如也

空空如也

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

TA关注的人

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