Overblog Tous les blogs Top blogs Technologie & Science Tous les blogs Technologie & Science
Suivre ce blog Administration + Créer mon blog
MENU

java

Hibernate 入门

4 Septembre 2013 Publié dans #hibernate, #java

其实Hibernate本身是个独立的框架,它不需要任何web server或application server的支持。然而,大多数的Hibernate入门介绍都加入了很多非Hibernate的东西,比如: Tomcat, Eclipse, Log4J,Struts, XDoclet, 甚至JBoss。这容易让人产生Hibernate复杂难懂的误解,特别是打击了初学者的积极性。 在这篇文章将不涉及Eclipse, log4j, Struts, Tomcat, XDoclet,和JBoss。本文的目的是演示一下Hibernate的安装过程以及最基本的功能,从而给初学者一个低得不能再低的入门门槛。...

Lire la suite
Publicité

Spring 基础

17 Août 2013 Publié dans #spring, #java

首先Spring提供的功能有: Inversion of control (IOC): Loose coupling is achieved in spring using the technique Inversion of Control. The objects give their dependencies instead of creating or looking for dependent objects. Aspect oriented (AOP): Spring supports...

Lire la suite

java 中Collection/Map 的比较

1 Août 2013 Publié dans #java

首先java中各种collection或者Map类层次关系如下: Collection ├List │├LinkedList │├ArrayList │└Vector │ └Stack └Set Map ├Hashtable ├HashMap └WeakHashMap ​ 1. Collection接口 Collection是最基本的集合接口,声明了适用于JAVA集合(只包括Set和List)的通用方法。 Set 和List 都继承了Conllection,Map。 1.1Collection接口的方法:...

Lire la suite

UnitTest Gmock

24 Juillet 2013 Publié dans #java, #unittest

Unit test 是工作中新学到的东西,非常有必要,保证每个单元程序正常运行。其中Mockito是很好用的。 一、什么是mock测试,什么是mock对象? 先来看看下面这个示例: 从上图可以看出如果我们要对A进行测试,那么就要先把整个依赖树构建出来,也就是BCDE的实例。 一种替代方案就是使用mocks 从图中可以清晰的看出 mock对象就是在调试期间用来作为真实对象的替代品。 mock测试就是在测试过程中,对那些不容易构建的对象用一个虚拟对象来代替测试的方法就叫mock测试。 二、什么是Mockito...

Lire la suite
Publicité

Master Project - NoSQL 工具

10 Juillet 2013 Publié dans #nosql, #java, #opensource

严禁转载,使用请注明出处:http://alex2012-c.j.overblog.com/ 主要是研究不同类型的数据库,找一个通用的API还操作不同类型的NoSQL,最终选择了Kundera来操作Cassandra/HBase/MongoDB A l’issue des études qu’on a effectuées sur les différentes API d’exploitation relative à chaque modèle de base de données on a...

Lire la suite

Nosql基础比较

4 Juillet 2013 Publié dans #nosql, #java, #opensource

严禁转载,使用请注明出处:http://alex2012-c.j.overblog.com/ 毕业项目是为Steria做的,这里有一个自己当初研究了一些NoSQL的比较

Lire la suite
Lire la suite

XML/JSON 比较

14 Mai 2013 Publié dans #json, #xml, #java

严禁转载,使用请注明出处:http://alex2012-c.j.overblog.com/ 毕业论文一部分,比较了XML/JSON的区别,并且实际测试了二者传输所需要的时间: Un système distribué est constitué d’un ensemble de postes de travail et de périphériques (avec ou sans des architectures matérielles et des systèmes d’exploitations...

Lire la suite
Publicité

java array

13 Avril 2013 Publié dans #java

在java类中,添加一个数组作为成员,以及如何实例化这个类。并把几个实例化的对象存在一个数组内。 public class Hotel { private String hotelId; private String hotelName; private int numberRooms; private int[] numberRest = new int[364]; public Hotel(){}; public Hotel(String hotelId, String hotelName,...

Lire la suite

WS client Eclipse + Tomcat

10 Mars 2013 Publié dans #tomcat, #webservice, #java

refer : http://www-inf.it-sudparis.eu/~nguyen_n/teaching_assistant/web_services/webservice_client_generation WS Client deployment with Eclipse WTP In this tutorial we will see how Eclipse generate the Client stub. We start with the HelloWorld service...

Lire la suite
<< < 1 2 3 4 > >>