`
文章列表
  Hi guys,   Thanks for your time, here is the mail agenda of our training (one-way communication). I didn’t schedule the time well, and also there is no question proposed in this training, any feedback please feel free to let me know, I will apply them into the next training: Two-way communicati ...
定义student 实体类,并重写compareTo() 方法。 package com.xxxx.practicetest; public class Student implements Comparable {   /**   * 定义一个学生类, 需要有姓名, 年龄, 考试成绩三个成员属性   * 构造bean,需要实现Comparable接口,并重写compareTo() ...
int[] arr = { 2, 7, 33, 22, 83, 21, 200, 53, 332 };   int temp, i, j;    /**    * 冒泡排序    *     * @param args    */   for (i = arr.length - 1; i >= 0; i--) {    for (j = 0; j < i; j++) {// j<i ,j<=i --->bug      if (arr[j] > arr[j + 1]) {// arrayindex out of bound //             ...
package com.itcast.practice; import java.util.Iterator;import java.util.LinkedList; public class test1 {  /**   * 1、 创建一个类Sample,在main方法中定义一个ArrayList的集合类, 并向集合中添加任意多个同一种类型的元素,   * 利用Iterator接口,遍历 ...
Spring2.5+Hibernate3.3+Struts2整合开发     在web容器中实例化spring容器和配置struts2 <!-- 指定spring的配置文件,默认从web根目录寻找配置文件,我们可以通过spring提供的classpath:前缀指定从类路径下寻找 --><context-param>   <param-name>contextConfigLocation</param-name>   <param-value>classpath:beans.xml</param-value>< ...
spring 要进行AOP编程,首先我们要在spring的配置文件中引入aop命名空间:<beans xmlns="http://www.springframework.org/schema/beans"       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"       xmlns:aop="http://www.springframework.org/schema/aop"       xsi:schemaLocation="http://www.sp ...
由于spring的schema文件位于网络上,如果机器不能连接到网络,那么在编写配置信息时候就无法出现提示信息,解决方法有两种:   1。让机器上网,eclipse会自动从网络上下载schema文件并缓存在硬盘上。   2。手动添加schema文件,方法如下:windwos->preferences->myeclipse->files and editors->xml->xmlcatalog点"add",在出现的窗口中的Key Type中选择URI,在location中选"File system",然后在spring ...

svn 协同开发

    博客分类:
  • svn
准备: svn 服务器软件:svn  server /http://subversion.apache.org eclipse svn 插件: subclipse  /http://subclipse.tigris.org  安装: eclipse-->help-->install new software--->add--->location--->ok     visual svn server 的设置: 1.create new repositroy 2.creater user 3,create groups 4,设置访问权限   ...
http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/h/project/hi/hibernate/hibernate3/
1.问题:Exception in thread "main" java.lang.NoClassDefFoundError: org/dom4j/DocumentException at HibernateTest.main(HibernateTest.java:14) 方法:添加dom4j.jar(解析hibernate.cfg.xml文件)   2.问题:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactor ...
public static void main(String[] args) {           Configuration conf = new Configuration().configure();//1、读取配置文件           SessionFactory sf = conf.buildSessionFactory();// 2、创建SessionFactory           Session session = sf.openSession();// 3、打开Session           Transaction tx = null;           tr ...
Global site tag (gtag.js) - Google Analytics