- 博客(15)
- 资源 (8)
- 收藏
- 关注
原创 python 正则表达式
•^ matches the beginning of a string. • $ matches the end of a string. • \b matches a word boundary. • \d matches any numeric digit. • \D matches any non-numeric character. • x? matches an opti
2013-05-06 17:54:34 403
原创 mybatis点滴
Sql注入 SQL注入攻击(SQL injection),简称注入攻击,是发生于数据库层的安全漏洞。简单的说,是在输入的数据字符串之中夹带SQL指令,如果在设计不良的程序当中忽略了检查,那么这些夹带进去的指令就会被数据库服务器误认为是正常的SQL指令而运行,因此破坏系统。 例如: 某个网站的登录验证的SQL查询代码为 strSQL = "SELECT * FROM user
2012-11-29 11:27:37 605
原创 Mysql SQL语句
删除重复数据: delete tab_played_games a from tab_played_games a, ( select *,min(id) from tab_played_games T where T.GAME_ID = 3 group by T.user_ID having count(1) > 1 ) as b where a.USER_ID = b.U
2012-08-03 16:08:07 192
原创 Mac下安装MySQLdb
Mac下安装MySQLdb 本来以为使用easy_install安装MySQLdb很简单,结果还是费了一点劲才安装好。 问题及解决办法: easy_install MySQLdb提示 Couldn’t find index page for ‘MySQLdb’ (maybe misspelled?) No local packages or download links foun
2012-07-22 19:35:19 488
原创 putty的乱码解决
putty中文乱码问题解决 打开putty,登录成功后,在shell中输入 # export LC_ALL= ‘zh_CN.utf8′ # vi ~/.bash_profile (vi ~/.bashrc) LANG=zh_CN.GB18030 LANGUAGE=zh_CN.GB18030:zh_CN.GB2312:zh_CN export LANG LANG
2012-05-18 16:53:46 282
原创 mybatis3 spring cxf
在使用过hibernate ibatis 之后,还是喜欢ibatis的那种写原生态的SQL, 便追随着ibatis来到mybatis. 由于spring3的发布在mybatis3之前,所以并没有对mybatis3提供官方支持. 于是便引出了mybatis-spring*.jar(由mybats的官方提供) 由于项目是C/S 架构的,我选用cxf将服务发不成webservice,再用sp
2012-05-16 11:17:16 605
原创 nginx keepalived双机热备
采用nginx实现反向代理,配置集群,实现软F5的功能。 nginx.conf的配置如下: worker_processes 8; error_log /home/soco/share/nginx/logs/nginx_error.log crit; pid /home/soco/share/nginx/logs/nginx.pid; wor
2012-05-16 10:48:02 831
原创 spring aop
使用spring aop, 切片只能切入接口的方法声明,若需要硬性地切入实体类,则需要CGLIB包生成实体类的代理,CGLIB.jar 与asm.jar容易造成冲突,推荐使用cglib-nodep-2.2.jar。 代理类的aop配置方式 expression="execution(public * com.socogam
2012-05-16 10:33:44 263
原创 spring整合
Spring容器创建Bean的步骤: 1.Create the bean instance via constructor or factory method. 2.Set the values and bean references to bean properties. 3.Call initialization callback methods. 4.Bean is r
2011-10-20 17:14:19 218
转载 Spring HTTP invoker简介
Spring HTTP invoker是spring框架中的一个远程调用模型,执行基于HTTP的远程调用(意味着可以通过防火墙),并使用java的序列化机制在网络间传递对象。客户端可以很轻松的像调用本地对象一样调用远程服务器上的对象,这有点类似于webservice,但又不同于w
2011-10-08 01:05:55 656
转载 gof 设计模式
J2EE 等属于一种框架软件,什么是框架软件?它不同于我们以前接触的Java API 等,那些属于Toolkist(工具箱),它不再被动 的被使用,被调用,而是深刻的介入到一个领域中去,J2EE 等框架软件设计的目的是将一个领域中不变的东西先定义好,比如 整体结构和一些主要职
2011-10-07 21:30:50 272
原创 css 选择器
读书笔记,稍后整理~~ #main p: This expression finds an element with an ID of main, all element descendants, and then all element descendants.
2011-09-30 17:38:26 255
原创 java script
浏览器加载html dom 的顺序 • HTML is parsed. • External scripts/style sheets are loaded. • Scripts are executed as they are parsed in the document
2011-09-30 14:28:29 218
转载 spring
首先,需要理解的是spring容器中bean的生命周期,《spring in action》中的那张图是最好的解释,结合这张图和源码来解读spring中IOC的实现将非常容易理解。这张图完整展示了spring容器中一个bean从创建到销毁的整个生命周期
2011-09-30 10:09:34 249
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人