`
文章列表
 使用命令:mvn install:install-file -Dfile=C:/Users/lw56233/Desktop/i123.jar -DgroupId=com.213 -DartifactId=i123 -Dversion=12 -Dpackaging=jar
在pom.xml文件中加入: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id& ...
很多情况下,得到的request或者response都是String形式的,而不是文件形式的xml,此时使用StringReader来作为inputstream的中间层   // 字符串转XML DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); InputSource inputSource = new InputSource(); Document document = null; ...
写个SHELL,名字叫 a.sh,放在任意位置, 执行sh ./a.sh, sh ./home/a.sh 等 即可通过下面的SHELL取得他所在的文件夹  BIN=`dirname "${BASH_SOURCE[0]}"` BIN=`cd "$BIN";pwd echo $ BIN 具体含义 ${BASH_SOURCE[0]}  取得执行shell命令的全路径例如  /home/a.sh dirname 取得前面的路径,即/homecd 进到目录里 && pwd 打印当前路径   如果想要进入/目录的话,则需要这么写 BI ...
Sender类,主要用来发送JMS消息 import java.io.OutputStreamWriter; import javax.jms.DeliveryMode; import javax.jms.Destination; import javax.jms.JMSException; import javax.jms.MessageProducer; import javax.jms.Queue; import javax.jms.QueueConnection; import javax.jms.QueueConnectionFactory; import j ...
首先是spring的配置文件   <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop=" ...

手动搭建SSH环境

 
1 开发环境     MyEclipse 10     JDK 1.6     Java EE 5.0     Tomcat 7.0.25     Struts 2.3.4     Spring 3.1.1     Hibernate 3.6.10 2 为ssh做好准备 2.1下载包 Struts 2.3.4包下载:      http://struts.apache.org/download.cgi#struts234 Hibernate 3.6.10包下载:      http://sourceforge.net/projects/hibernate/files/hibernat ...
Bash函数,不同于其他编程语言的函数,它更像一个子程序,即其返回值,只能是一个数字,以0表示成功,非0表示失败。如果,在bash函数中想返回除了数字之外的值,有三种方法:   1.假设我们想返回一个字符串,最简单的方法是: function myfunc() { myresult='the value' } myfunc echo $myresult  通过一个全局变量myresult,来保存返回值。使用全局变量,其缺点也是不言而喻的。     2.第二种方法: function myfunc() { local myresult='some ...
7000常用字,楷体,48号
1. 子类在重写父类的具有异常声明的方法时,要么不抛异常,要么就抛出跟父类方法相同的异常或该异常的子类。 2. 子类在重写父类的具有异常声明的方法的同时,又去实现了具有相同方法名称的接口且该接口中的方法也具有异常声明,则子类中的重写的方法,要么不抛出异常,要么抛出父类中方法声明异常与接口中方法声明的异常的交集。例子如下: class Test { public Test() throws IOException {} void test() throws IOException {} } interface I1{ void tes ...

div拖动排序

前台html代码: <div class="ability_show_list" id="abilityShow"> </div>   javascript function divAbilitydrop(){ $(".ability_show_list_title").bind('mouseover',function(){ $(this).css("cursor","move"); }); var ...
想把一批name相同的input或者checkbox等作为一个数组 通过post 传递给后台进行处理   解决方法如下: 前台: var header = new Array(); var body = new Array(); for(var i = 0; i < headers.length; i++){ header[i] = headers[i].value; body[i] = bodys[i].html(); } $.post( url,{ 'header[]': header, 'body[]': bod ...
在html的body上增加onbeforeunload函数,如下: <body onbeforeunload="event.returnValue='确定退出?';"> </body>
jQuery.handleError is not a function 原因是,经测试handlerError只在jquery-1.4.2之前的版本中存在,jquery-1.6 和1.7中都没有这个函数了,因此在1.4.2中将这个函数复制到了ajaxFileUpload.js中,问题解决 handleError: function( s, xhr, status, e ) { // If a local callback was specified, fire it if ( s.error ) { s.error.call( s.context || s, xhr, s ...
第一种: selection.clear (display:none时不能用) var obj = document.getElementById('fileupload') ; obj.select(); document.selection.clear();  第二种:outerHTML (无论display:none或block都可以用) var obj = document.getElementById('fileupload') ; obj.outerHTML=obj.outerHTML;  第三种:clone var cloneFile = $("#& ...
Global site tag (gtag.js) - Google Analytics