- 博客(15)
- 资源 (4)
- 收藏
- 关注
转载 MySQL中char、varchar和text的区别
转载自: http://blog.sina.com.cn/s/blog_4c9ba2850100ptic.html
2014-05-27 19:42:19 720
转载 java参数传递机制浅析
转载自: http://blog.csdn.net/chdjj/article/details/24619727#comments前言:java语言中,参数的传递只有一种机制,那就是值传递。举例:下面将通过几个例子来说明java中的参数传递机制,这些例子基本涵盖了所有参数传递的情况。1.基本数据类型:[java] view
2014-05-26 20:18:17 653
原创 冒泡
#include using namespace std;void swap(int a[],int , int );void bubbleSort(int a[],int );int main(){ int a[]={4,3,2,1,9,7,5,6,8,0}; bubbleSort(a,10); for(int i=0;i<10;i++){ c
2014-05-21 15:11:16 568
转载 Oracle数据库,实例,表空间,用户,表之间的关系简析
zhuan完整的Oracle数据库通常由两部分组成:Oracle数据库和数据库实例。 1) 数据库是一系列物理文件的集合(数据文件,控制文件,联机日志,参数文件等); 2) Oracle数据库实例则是一组Oracle后台进程/线程以及在服务器分配的共享内存区。在启动Oracle数据库服务器时,实际上是在服务器的内存中创建一个Oracle实例(即在服务器内存中分配
2014-05-20 20:30:28 624
转载 求素数方法
(一) 一般求素数方法(对某些OJ 来说会超时) /*求素数的三种方法 一:for(i=2;iif(n%i==0)i 在2 到n-1 之间任取一个数,如果n 能被整除则不是素数,否则就是素数 二:for(i=2;iif(n%i==0) /*i 在2 到n/2 之间任取一个数,如果n 能被整除则不是素数,否则就是素数 三:for(
2014-05-20 10:17:34 929
转载 解决Setting property 'source' to 'org.eclipse.jst.jee.server的问题
转载自:http://blog.csdn.net/foreversilent/article/details/11147847
2014-05-14 22:33:38 777
转载 Java设计模式之责任链
Java设计模式之责任链 http://blog.csdn.net/crave_shy/article/details/21020507 摘要:本笔记主要记录了责任链设计模式的设计、从问题的提出、到问绕解决问题的途径来展示责任链设计模式的思想与代码构建。 一:问题的引出 在实际项目中、我们常常需要对请求中所带来的信息进行处理
2014-05-14 20:52:55 693
转载 jdbc连接数据库
import java.sql.*;public class TestJDBC{ public static void main(String[] args){ ResultSet rs=null; Statement stmt=null; Connection conn=null; try{ Class.forName("com.mysql.jd
2014-05-12 22:27:45 591
转载 hibernate4.2关于sessionFactory的一点变化
The method buildSessionFactory() from the type Configuration is deprecated以前的写法:(废弃的写法) Configuration config = new Configuration(); config.configure(); SessionFact
2014-05-10 18:48:29 577
转载 Java设计模式之工厂模式
转自 :http://blog.csdn.net/crave_shy/article/details/21157955摘要:主要记录工厂系列的设计模式、静态工厂、简单工厂、抽象工厂和模拟了spring的BeanFactory。同时对他们的优劣做了简单的对比。 一:简介 什么叫做工厂?从现实的角度上说、就是生产一些实际的东西而存在的场
2014-05-08 19:50:42 681
转载 Java设计模式之策略模式
Java设计模式之策略模式 摘要:本篇笔记主要是对策略模式(StrategyPattern)学习过程、心得的记录。主要是通过模仿JDK中关于类的比较的方式来实现可以使用指定的方法、指定的策略来比较两个类的大小。 一:简介 三十六计走为上策、这句话我们肯定不会陌生!策略、就是我们针对不同的时期、或者不同的情况、动态的选择合适
2014-05-07 16:44:17 636
原创 The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the asso
The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, w
2014-05-04 16:04:50 555
转载 Eclipse EE创建web工程
1.File ----> New ---->other ---->Web ---->Dynamic Web Project 2.Next 选择添加项目Project name : Tests 选择Tomcat 配置选择你下载匹配的Tomcat我用的是Apache T
2014-05-04 15:57:09 570
转载 Eclipse报错:java.lang.ClassNotFoundException: ContextLoaderListener
Eclipse中tomcat部署工程启动后报错:
2014-05-04 15:45:36 798
转载 execute、executeQuery和executeUpdate之间的区别
JDBCTM中Statement接口提供的execute、executeQuery和executeUpdate之间的区别 Statement 接口提供了三种执行 SQL 语句的方法:executeQuery、executeUpdate 和 execute。使用哪一个方法由 SQL 语句所产生的内容决定。 方法executeQuery
2014-05-03 20:52:40 462
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人