`
lokepaqi
  • 浏览: 44678 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
/** * 通过xml部署新流程定义 * @param resourceName * @return 返回流程定义标识 */ public String deployProcessEngine(String resourceName) { return processEngine.getRepositoryService().createDeployment() .addResourceFromClasspath(resourceName).deploy(); } /** * 通过zip文件部署流程 * @param zi ...
String.prototype.getBytes = function() { var totalLen = 0; var charCode; for (var i = 0; i < this.length; i++) { charCode = this.charCodeAt(i); if (charCode < 0x007f) { totalLen++; } else if ((0x0080 <= charCod ...
http://www.cnblogs.com/crazy-fox/archive/2012/02/18/2357675.html sprngmvc 返回json: 方法一:springmvc设置默认返回json <bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver"> <property name="contentNegotiationManager"> <bean ...

dead code

    博客分类:
  • j2ee
 
图片中出现 deadcode,代表里面的代码永远不被执行,而导致这情况是由于 System.out.println(relationReq.getMsgType());当relationReq为空时候,在这句就已经throw exception了。所以下面的判断是否为空完全是多余的了

iframe 跨域解决方法

    博客分类:
  • js
网上找到的demo,备份一下。这是找了一天找到最为简单有效的方法。
搭建过程参考:http://www.pefj.info/archives/21 我的环境:spring3.1           flex4/flex4.5           hibernate3.6.1           jdk1.6           myeclipse9.0           tomcat6 因为搭建过程网上很多,就不介绍,很多人教程搭建还是出错。下面是配置完之后的配置文件: src下面: 1.jdbc.property jdbc.driverClassName=com.mysql.jdbc.Driver jdbc.url=jdbc\:mysql\ ...

java 排序

package com.softeem.jbs.lesson4; import java.util.Random; /** * 排序测试类 * * 排序算法的分类如下: * 1.插入排序(直接插入排序、折半插入排序、希尔排序); * 2.交换排序(冒泡泡排序、快速排序); * 3.选择排序(直接选择排序、堆排序); * 4.归并排序; * 5.基数排序。 * * 关于排序方法的选择: * (1)若n较小(如n≤50),可采用直接插入或直接选择排序。 *  当记录规模 ...
Spring 3.1包详解 Spring 3.1与之前的 2.X 的不一样,新版本把原来的包分解了,功能分工明确: org.springframework.aop-3.1.0.M1.jar ---- ----spring 的面向切面编程,提供AOP(面向切面编程)实现, org.springframework.asm-3.1.0.M1.jar ---- ----spring 独 ...
要看lucene的一些基本概念,看:http://www.ibm.com/developerworks/cn/java/j-lo-lucene1/ 这里主要写一个lucene3.3的简单例子: 首先,当然是helloworld程序: package com.lucene.demo; import java.io.File; import java.util.List; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.cn.smart.SmartChineseAnaly ...

lucene 学习

http://forfuture1978.iteye.com/category/95698

oracle查询语句

1. 树查询 Java代码   create table tree (       id number(10) not null primary key,       name varchar2(100) not null,       super number(10) not null                // 0 is root   );   -- 从子到父   select * from tree start with id = ? connect by id = prior super    -- 从父到子   select * from tree s ...

oracle命令

第一章:日志管理 1.forcing log switches     sql>; alter system switch logfile; 2.forcing checkpoints     sql>; alter system checkpoint; 3.adding online redo log groups     sql>; alter database add logfile [group 4]     sql>; ('/disk3/log4a.rdo','/disk4/log4b.rdo') size 1m; 4.adding o ...

注解入门

    博客分类:
  • j2ee
注解(Annotation) 为我们在代码中添加信息提供了一种形式化的方法,是我们可以在稍后某个时刻方便地使用这些数据(通过解析注解来使用这些数据)。 注解的语法比较简单,除了@符号的使用以外,它基本上与java的固有语法一致,java内置了三种注解,定义在java.lang包中。 @Override 表示当前方法是覆盖父类的方法。 @Deprecated 表示当前元素是不赞成使用的。 @SuppressWarnings表示关闭一些不当的编译器警告信息。 下面是一个定义注解的实例 import java.lang.annotation.Documente ...

js全选反选

    博客分类:
  • js
<html> <head> <script type="text/javascript"> function checkEvent(name, allCheckId) { var allCk = document.getElementById(allCheckId); if (allCk.checked == true) checkAll(name); ...

static的使用

    博客分类:
  • j2ee
不用实例化; 被预编译; 访问速度比较快 有时只希望某个类提供一些服务,不需要创建具体实例时,就可以用它,有些经验的Coder都会在工具类中利用它的~
Global site tag (gtag.js) - Google Analytics