- 博客(18)
- 资源 (11)
- 收藏
- 关注
转载 设计模式六大原则——原文有改动
目录:设计模式六大原则(1):单一职责原则设计模式六大原则(2):里氏替换原则设计模式六大原则(3):依赖倒置原则设计模式六大原则(4):接口隔离原则设计模式六大原则(5):迪米特法则设计模式六大原则(6):开闭原则设计模式六大原则(1):单一职责原则定义:不要存在多于一个导致类变更的原因。通俗的说,即一个类只负责一项职责。 问题由来:类T负责两个不同的
2014-07-29 16:26:37 769
转载 uDig 源码开发环境构建
h1. uDig Overview The User-friendly Desktop Internet GIS(uDig) is an open source("EPL":http://www.eclipse.org/legal/epl-v10.html +"BSD":http://udig.refractions.net/files/bsd3-v10.html)
2014-07-29 15:20:09 2736 2
转载 Redy语法分析--抽象语法树简介
抽象语法树简介(一)简介抽象语法树(abstract syntax code,AST)是源代码的抽象语法结构的树状表示,树上的每个节点都表示源代码中的一种结构,这所以说是抽象的,是因为抽象语法树并不会表示出真实语法出现的每一个细节,比如说,嵌套括号被隐含在树的结构中,并没有以节点的形式呈现。抽象语法树并不依赖于源语言的语法,也就是说语法分析阶段所采用的上下文无文文法,因为在写文
2014-07-27 12:52:23 19017 3
转载 Java Magic. Part 4: sun.misc.Unsafe
Java is a safe programming language and prevents programmer from doing a lot of stupid mistakes,most of which based on memory management. But, there is a way to do such mistakesintentionally, us
2014-07-24 15:49:49 796
转载 Hibernate主键策略生成器
Hibernate主键策略生成器hibernate提供多种主键生成策略,有点是类似于JPA 有的是hibernate特有:native: 对于oracle采用sequence方式,对于 MySql和sql server采用identity(自增主键生成机制) native就是将主键的生成工作交由数据库完成uuid: 采用128位的uuid算
2014-07-23 14:33:14 639
原创 jaxb 简单的对象与xml相互转换
/** * */import java.io.File;import java.io.IOException;import java.io.StringReader;import java.io.StringWriter;import javax.xml.bind.JAXBContext;import javax.xml.bind.Marshaller;import jav
2014-07-18 17:07:02 785
原创 利用geotools-v10.3获得指定经纬度的域的值
import java.io.File;import java.io.IOException;import java.io.Serializable;import java.nio.charset.Charset;import java.util.Collection;import java.util.HashMap;import java.util.Iterator;import
2014-07-18 12:45:50 2290
原创 linux下导入jar包运行java程序。
#!/bin/sh CLASSPATH=".:risk-warn-decoder.jar" #CLASSPATH. for jarfile in $(ls lib/.); do CLASSPATH="${CLASSPATH}:lib/$jarfile" done #echo ${CLASSPATH} java -Xms102
2014-07-17 10:19:29 6845
原创 正则表达式
正则表达式到底是什么东西?字符是计算机软件处理文字时最基本的单位,可能是字母,数字,标点符号,空格,换行符,汉字等等。字符串是0个或更多个字符的序列。文本也就是文字,字符串。说某个字符串匹配某个正则表达式,通常是指这个字符串里有一部分(或几部分分别)能满足表达式给出的条件。在编写处理字符串的程序或网页时,经常会有查找符合某些复杂规则的
2014-07-17 09:50:37 694
原创 基于jersey v2.10的webservice核心框架
web.xml配制<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://java.sun.com/xml/ns/javaee"xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/jav
2014-07-16 16:01:34 4462
原创 JAXB转变对象到xml
比较常用的几个: @XmlRootElement:根节点 @XmlAttribute:该属性作为xml的attribute @XmlElement:该属性作为xml的element,且可以增加属性(name="NewElementName"),那么生成的xml串的elment的标签是NewElementName
2014-07-15 10:22:31 924
原创 UML解惑:图说UML六种关系
UML的构造快包含3种: (1) 事物(4种):结构事物,行为事物,分组事物,注释事物(2) 关系(4种):泛化关系,实现关系,依赖关系,关联关系(3) 图(10种):用例图,类图,对象图,包图,组件图,部署图,状态图,活动图,序列图,协作图事物是对模型中最具代表性的成分的抽象;关系把事物结合在一起;图聚集了相关的事物。 (2) 关系(4种)UML 中类与
2014-07-08 17:15:45 699
转载 Using Second Level Caching in a JPA Application
Caching structurally implies a temporary store to keep data for quicker access later on. Second level shared cache is an auxiliary technique, mainly used in JPA, to enhance performance; it is used
2014-07-08 13:33:29 1033
转载 Maven系列2--pom.xml 配置详解
http://maven.apache.org/POM/4.0.0 " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance " xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0
2014-07-07 16:21:38 732
原创 JPA的配置文件persistence.xml参数详解
JPA的配置文件persistence.xml参数详解JPA规范要求在类路径的META-INF目录下放置persistence.xml, 文件的名称是固定的,配置模板如下: Xml代码 <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLS
2014-07-07 14:00:42 23446 1
HTK语音识别
2017-03-22
数理统计与数据分析 第3版
2015-11-24
基于jersey v2.10的webservice核心框架
2014-07-24
Eclipse Rich Client Platform 2nd Edition with Source Code.zip
2014-05-12
模式分析的核方法,english 2th edition
2010-12-10
kpca 核主成分分析
2010-12-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人