- 博客(51)
- 资源 (41)
- 收藏
- 关注
原创 Dom4j解析XML文档
1。SAX方式 SAXReader saxReader = newSAXReader(); Document document =saxReader.reader("....");2.DOM方式DocumentBuilderFactory dbf =DocumentBuilderFactory.newInstance();DocumentBuilder db= dbf
2012-12-22 17:31:58
444
原创 java中的代理
花了几个小时终于搞清楚java 的代理,感觉程序和人的行为是相同的。和我们现在的代理真的很相似。另外关于public Object invoke(Object proxy, Method method, Object[]args)throws Throwable;中的proxy参数的含义java的文档是这么说的 “proxy the proxyinstance that the metho
2012-12-22 17:31:56
373
原创 struts2获得request session appli…
继承 SessionAware,ApplicationAware,RequestAware IOC DIinjection of control depency injection
2012-12-22 17:31:54
436
原创 java加载文件的几中方式
1.URL url =className.class.getClassLoader().getResource("google.xml");2.Thread.currentThread().getContextClassLoader().getResource("file");3.ClassLoader.getSystemClassLoader.getResource("file");
2012-12-22 17:31:52
424
原创 struts2必须要引入的包
1、 Struts2 Unable to load configuration. - bean - jar .....WEB-INF/lib/struts2-core-2.1.2.jar!/struts-default.xml:46:178解决办法收藏除了commons-logging-1.0.4.jarfreemarker-2.3.12.jarognl-2.6.11.jarstru
2012-12-22 17:31:45
473
原创 Tomcat中用get方式提交中文数据乱…
在myeclipse中或者是tomcat的conf中的server.xml文件(加入红色的部分)<Connector port="8888"protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" />
2012-12-22 17:31:41
452
原创 fedora忘记root密码的修改方法
1.在系统进入单用户状态,直接用passwdroot 去更改;2.用安装光盘引导系统,进入linux rescue 状态,将原来/分区挂接上来,命令如下:cd /mntmkdir hdmount -t auto /dev/hdaX(原来分区所在的分区号) hdcd hdchroot ./passwd root这样可以搞定;3.将本机的硬盘拿下来,挂到其他的linux 系统上,采
2012-12-22 17:31:37
1040
原创 shell中函数的值传递
1.bash中函数的值传递可以是用return和类似在函数中echo出后用变量接受值(此是在两个文件时的情况)f1(){........echo $var #此处的变量默认是local的}var=`f1` #此时var才正式接受了f1中var的值2.同文件夹下的变量是全局的,包括函数内的(为被local修饰的变量)和外部定义的。
2012-12-22 17:31:35
563
原创 fedora添加163的rpm源
[Fedora-mirrors.163.com]name=Fedora 14 -i386 baseurl=http://mirrors.163.com/fedora/updates/14/i386/enabled=1gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-F
2012-12-22 17:31:30
692
原创 Linux的学习网站
国外 http://lwn.net/ http://www.tldp.org/ https://rhn.redhat.com/ http://www.justlinux.com/ http://www.linuxtoday.com/ http://www.linuxquestions.org/ http://www.fokus.gmd.de/linux/
2012-12-22 17:31:28
731
原创 js学习
使用jquery的时间也不短了,但是对原生态的javascript了解的还是很少,准备系统学习一下undefined,NaN,null,0,-0,空字符串:转换为boolean为false主流浏览器引擎简介各种主流浏览器内核引擎的对比分析js中2个等号与3个等号的区别
2012-12-19 09:59:54
363
SecureCRT and SecureFX v7.2 x86 x64全部带注册机已验证
2015-01-28
去除BOM头小工具
2014-04-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅