14:18 2014/5/5IOC inversion of control 控制反转
将new对象的权力由调用者转移到spring容器(即xml文件),Struts2与Spring整合(scope="prototype")由spring来维护struts的生命周期,在启动web容器时spring容...
分类:
其他好文 时间:
2014-05-23 05:56:11
阅读次数:
284
IOC:Inversion of Control
控制反转。(底层原理:反射)所谓的控制反转,就是应用本身不负责依赖对象的创建及维护,依赖对象的创建及维护是由外部容器负责,这样控制权就用应用内部转移到了外部容器,这样做的目的是为了获得更好的扩展性和良好的可维护性。DI:Dependency
Inje...
分类:
编程语言 时间:
2014-05-23 05:47:09
阅读次数:
317
monkeyrunnerThe monkeyrunner tool provides an API
for writing programs that control an Android device or emulator from outside of
Android code. With m...
分类:
其他好文 时间:
2014-05-23 05:27:27
阅读次数:
257
一:可选择保留位数,注释很解释的很详细,上图二:全部代码using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using Sys...
16:20 2013/7/7Oracle 登陆管理员登陆 sqlplus sys/root as
sysdba (密码认证)这个root是安装数据库最初你输入的口令 sqlplus /as sysdba (主机认证 要求系统用户就是DBA用户)普通登陆
sqlplus scott/tiger(如果密...
分类:
数据库 时间:
2014-05-23 04:57:01
阅读次数:
309
效果截图:代码展示:using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using System.Text;using Sys...
分类:
其他好文 时间:
2014-05-23 04:31:37
阅读次数:
312
--查询数据库状态select name,user_access,user_access_desc,
snapshot_isolation_state,snapshot_isolation_state_desc,
is_read_committed_snapshot_onfrom sys.dat.....
分类:
数据库 时间:
2014-05-22 16:48:03
阅读次数:
340
using System;using System.Collections.Generic;using
System.Linq;using System.Web;using System.Web.Mvc;using
System.Web.Security;namespace 验证权限.Control...
分类:
Web程序 时间:
2014-05-22 15:36:02
阅读次数:
264
最近闲来无事写了一个统计C或者C++代码行数的程序,主要用到了python以及正则表达式
#-*-coding:utf-8
#!/usr/bin/python
import re
import os
import sys
'''get the file or dir in one path'''
def getfilename(path):
if os.path.exi...
分类:
编程语言 时间:
2014-05-21 15:06:30
阅读次数:
379
Git 属于分布式版本控制系统( Distributed Version Control
System,简称 DVCS
)客户端并不只提取最新版本的文件快照,而是把原始的代码仓库完整地镜像下来。这么一来,任何一处协同工作用的服务器发生故障,事后都可以用任何一个镜像出来的本地仓库恢复。因为每一次的提取...
分类:
系统相关 时间:
2014-05-21 12:07:50
阅读次数:
441