自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(47)
  • 资源 (2)
  • 收藏
  • 关注

原创 hashCode 和 equals

1. Object默认 hashCode 使用对象的地址计算散列码,equals 比较对象的地址    String的hashCode和equals与字符串内容有关,new String("hello")相同的对象,hashCode和equals相同;可以在HashSet中测试,字符串相同的多个String实例不会重复2. HashSet 对是否相同的对象采用的算法   e.hash

2017-01-19 02:03:02 245

原创 mac mysql 启动脚本

#!/bin/bashecho "hello shell"mysql_path=/usr/local/mysql/bin/if [[ $1 == "start" ]];then $mysql_path/mysqld_safe -uroot &>./log_error.txt & echo $? echo "mysql start..."elif [[ $1 == "stop"

2016-10-06 01:07:54 1199

原创 环信IM (三)对话

1.var sendText = function() { if (textSending) { return; } textSending = true; var msgInput = document.getElementById(talkInputId); var msg = msgInput.value; if (msg == null || msg.length ==

2016-05-03 15:55:19 1350

原创 环信IM (二)添加 删除

1.//主动添加好友操作的实现方法var startAddFriend = function() { var user = $('#addfridentId').val(); if (user == '') { $('#add-frident-warning').html( " 请输入好友名称"); return; } if (bothRoster) for (var

2016-05-03 14:44:57 3941

原创 环信IM (一)注册

webim.js//注册新用户操作方法var regist = function() { var user = $("#regist_username").val(); var pass = $("#regist_password").val(); var nickname = $("#regist_nickname").val(); if (user == '' || pass ==

2016-05-03 11:30:49 909

原创 c3p0源码解析 七 (C3P0PooledConnection类)

1.                       PooledConnection           --            JDK 1.4 C3P0PooledConnection    AbstractC3P0PooledConnection2.

2016-04-20 16:11:24 495

原创 c3p0源码解析 六 (C3P0PooledConnectionPoolManager类)

1. C3P0PooledConnectionPoolManager    C3P0PooledConnectionPool2.

2016-04-20 15:45:01 854

原创 CAS Ticket

1. Ticket==null    //验证账号/密码   1. final Authentication authentication = this.authenticationManager.authenticate(credentials)   //生成Ticket   2. final TicketGrantingTicket ticketGrantingTicket =

2016-04-13 17:14:42 736

原创 CAS 登录流程

1. login-webflow.xml2. initialFlowSetupAction    获取TicketGrantingTicketCookie TGT    1. this.ticketGrantingTicketCookieGenerator.retrieveCookieValue(request)    2.Cookie cookie = org.springfra

2016-04-12 23:53:17 952

原创 CAS 数据库校验

1. UnknownUsernameAuthenticationException --> BadUsernameOrPasswordAuthenticationException --> BadCredentialsAuthenticationException --> AuthenticationException -->  Exception2. AuthenticationMana

2016-04-10 21:17:14 713

原创 c3p0源码解析 五 (C3P0Config类)

c3p0源码解析 五 (C3P0Config类)

2016-04-08 19:28:42 451

原创 c3p0源码解析 四 (C3P0Config类)

public final static String CFG_FINDER_CLASSNAME_KEY = "com.mchange.v2.c3p0.cfg.finder"; public final static String DEFAULT_CONFIG_NAME = "default"; public final static C3P0Config MAIN;

2016-04-08 17:33:28 1284

原创 c3p0源码解析 三 (WrapperConnectionPoolDataSource类)

1.  WrapperConnectionPoolDataSource类 public WrapperConnectionPoolDataSource(boolean autoregister) { super( autoregister ); setUpPropertyListeners(); //set up initial value of userOverrid

2016-04-08 16:24:35 1500

原创 c3p0源码解析 二 (DriverManagerDataSource类)

1. DriverManagerDataSource类 public DriverManagerDataSource() { this( true ); } public DriverManagerDataSource(boolean autoregister) { super( autoregister ); setUpPro

2016-04-08 16:13:54 1883

原创 c3p0源码解析

准备工作1. 导入c3p0 和 mchang-commons-java(依赖其中方法)2. src/c3p0.propertiesc3p0.jdbcUrl=jdbc:mysql://localhost:3307/test c3p0.driverClass=com.mysql.jdbc.Driver c3p0.user=root c3p0.password=root

2016-04-08 15:33:48 3955

原创 CAS

1. 官方文档 http://jasig.github.io/cas/4.0.x/index.html2. 参考资料 http://www.cnblogs.com/lifeone/p/4987874.html3. 与shiro的集成 http://jinnianshilongnian.iteye.com/blog/2018398

2016-03-12 14:30:10 256

原创 我的APP

1. Socket启动APP,7890端口2. 解析HTTP请求3. 返回信息4. 保存信息5. 上传文件6.

2015-06-30 15:43:26 458

原创 SpringMVC 上传的几种方式

1. MultipartFile2. MultipartFile[] @RequestParam(required = false)3. MultipartHttpServletRequest4. CommonsMultipartFile5. CommonsMultipartFile[] @RequestParam

2015-04-10 10:59:31 409

原创 Hibernate @ManyToMany -- 2

Class Person@ManyToMany public Set getBankSet() { return bankSet;}Class Bank@ManyToMany(mappedBy="bankSet")public Set getPersonSet() { return personSet;}CREATE TABLE `bank` (  `id` varc

2014-12-30 15:29:16 415

原创 Hibernate @ManyToMany -- 1

Class Person@ManyToMany public Set getBankSet() { return bankSet;}TableCREATE TABLE `bank` (  `id` varchar(32) NOT NULL,  `createDate` datetime DEFAULT NULL,  `modifyDate` datetime DEFAULT N

2014-12-30 15:13:24 411

原创 Hibernate @OneToMany & @ManyToOne

Class Person@OneToMany (mappedBy="person")public Set getCreditCardSet() { return creditCardSet;}Class CreditCard@ManyToOnepublic Person getPerson() { return person;}TableCREATE TABLE `cred

2014-12-30 14:37:43 406

原创 Hibernate @OneToMany -- 2

Class Person@OneToMany @JoinColumn(name="personId")public Set getCreditCardSet() { return creditCardSet;}TableCREATE TABLE `creditcard` (  `id` varchar(32) NOT NULL,  `createDate` datetime DE

2014-12-30 14:25:56 405

原创 Hibernate @OneToMany -- 1

Class Person@OneToMany public Set getCreditCardSet() { return creditCardSet;}TableCREATE TABLE `creditcard` (  `id` varchar(32) NOT NULL,  `createDate` datetime DEFAULT NULL,  `modifyDate` d

2014-12-30 14:16:05 459

原创 Hibernate @ManyToOne -- 1

Class CreditCard@ManyToOnepublic Person getPerson() { return person;}TableCREATE TABLE `creditcard` (  `id` varchar(32) NOT NULL,  `createDate` datetime DEFAULT NULL,  `modifyDate` datetime

2014-12-30 11:22:33 816

原创 Hibernate @OneToOne -- 2

class Person@OneToOnepublic IDCard getIdcard() { return idcard;}class IDCard@OneToOne(mappedBy="idcard") public Person getPerson() { return person;}tableCREATE TABLE `idcard` ( `id`

2014-12-30 11:02:39 339

原创 Hibernate @OneToOne -- 1

class Person@OneToOnepublic IDCard getIdcard() { return idcard;}class IDCardtable personCREATE TABLE `person` ( `id` varchar(32) NOT NULL, `createDate` datetime DEFAULT NULL, `mod

2014-12-30 10:51:05 413

原创 TEST CONTENT

随碟附送水电费水电费水电费水电费水电费水电费水电费水电费水电费水电费水电费水电费

2014-02-06 16:42:24 572

转载 Install SQLite On Windows

from:http://www.tutorialspoint.com/sqlite/sqlite_installation.htmInstall SQLite On WindowsGo to SQLite download page, and download precompiled binaries from Windows section.You w

2014-01-15 12:23:37 667

原创 数组指针 指针数组 函数指针 指针函数

数组指针:先说明类型 类型为数组 再说明内容 内容为指针;数组里面的每一个内容都为指针 类似于int数组,char 数组,指针数组 *char[] = {"aaa", "bbb"}指针数组:先说明类型 类型为指针 再说明内容 内容为数组;指针指向的数组 (*char)[] 数组名本身就是一个指针 -_-! 函数指针:先说明类型 类型为函数 再说明内容 内容为指针;这个函数的内容为一个指针

2014-01-13 17:17:59 466

转载 List of Free Programming books

List of Free Programming bookshttp://www.cnblogs.com/hyddd/archive/2011/02/17/1956580.html

2014-01-09 12:45:38 501

转载 CodeCombat游戏全面开源:玩游戏也能学编程

CodeCombat游戏全面开源:玩游戏也能学编程http://www.csdn.net/article/2014-01-07/2818050-CodeCombat官网:http://codecombat.com/托管地址:https://github.com/codecombat/codecombat

2014-01-09 12:43:29 1210 1

转载 软件测试人员的基本修养

软件测试人员的基本修养http://www.csdn.net/article/2014-01-08/2818071-Tester

2014-01-09 12:41:18 445

转载 Selenium私房菜系列

Selenium私房菜系列8 -- 玩转Selenium Serverhttp://www.cnblogs.com/hyddd/archive/2009/05/30/1492492.html

2014-01-09 12:40:52 555

转载 JMeter

使用JMeter进行性能测试http://www.ibm.com/developerworks/cn/java/l-jmeter/

2014-01-09 12:39:58 504

转载 jQuery CSS 选择符

转载:http://blog.csdn.net/hb_cattle/article/details/1930630

2014-01-03 16:28:21 396

原创 SpringSide

http://sourceforge.net/projects/springside/files/SpringSide%203.0/3.3.x/

2013-12-19 13:22:17 421

原创 org.apache.commons.io Class FileUtils

//org.apache.commons.io Class FileUtils://通常用来复制文件,将文件复制到当前目录下,和复制到非当前目录时,会有细微的变化//1. 复制到当前目录下: String imgPath = "D:\\test\\jpg111.jpg"; String copyImgPath = "D:\\test\\Fighter.jpg"; Fi

2013-07-25 11:07:48 666

原创 Java I/O

1.InputStream,OutputStream 直接在硬盘上读写,不学要flush,也会读写2.Reader,Writer 会先写入缓冲区中,必须flush才会读写在硬盘上3.BufferedInputStream, BufferedOutputStream 提供了读写入缓冲区的功能,并且可以指定大小4.BufferedReader,BufferedWriter 为何还要继续停工

2013-07-16 18:41:13 363

原创 Java 调用本地程序

调用本地程序的基本原理:1. 获取本地程序的路径。例如: String splayer = "D:\\Program Files\\SPlayer\\splayer.exe";2.指定目标文件的路径。例如: String mp4 = "D:\\test\\swf\\video\\mp4\\dq\\1370021267350\\1370021267350.mp4";3.将参数写入

2013-07-15 17:27:55 582

原创 抽象类 Abstract Class

public abstract class AbstractClass {}

2013-06-08 17:18:37 398

UNIX+Linux系统管理技术手册+原书第4版.pdf

UNIX+Linux系统管理技术手册+原书第4版.pdf UNIX+Linux系统管理技术手册+原书第4版.pdf

2018-03-16

JavaScript权威指南(第6版)

[JavaScript权威指南(第6版)].(JavaScript:The.Definitive.Guide).David.Flanagan.文字版.pdf

2013-05-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除