09 2015 档案

摘要:function ChinaIdChecker(id) { this.isOK = false; this.error = ''; if (!id || typeof (id) != 'string' || id.length != 15 && id.len... 阅读全文
posted @ 2015-09-29 11:18 燕萧云
摘要:因为LinuxJDK6不支持中文,解决的办法如下:进入JDK安装目录#cd$JAVA_HOME/jre/lib/fonts建立fallback文件夹,并切换至该文件夹#mkdirfallback上传字体文件到该目录下【字体文件可以在C:\Windows\Fonts目录下找】如:simhei.ttf黑... 阅读全文
posted @ 2015-09-29 11:10 燕萧云
摘要:Causedby:com.mysql.jdbc.PacketTooBigException:Packetforqueryistoolarge(1856352>1048576).Youcanchangethisvalueontheserverbysettingthemax_allowed_packet... 阅读全文
posted @ 2015-09-29 11:09 燕萧云
摘要:JSTL 核心标签库标签共有13个,功能上分为4类:1.表达式控制标签:out、set、remove、catch2.流程控制标签:if、choose、when、otherwise3.循环标签:forEach、forTokens4.URL操作标签:import、url、redirect使用标签时,一定... 阅读全文
posted @ 2015-09-24 17:51 燕萧云
摘要:1、将文件checkout到本地目录svn checkout path(path是服务器上的目录)例如:svn checkout svn://192.168.0.1/baiduMap2、往版本库中添加新的文件svn add file例如:svn add test.php(添加test.php)svn... 阅读全文
posted @ 2015-09-22 10:30 燕萧云
摘要:HTML代码 密码修改成功, 秒钟后自动跳转至登录页面!JavaScript代码$("#tishi").hide(); //隐藏页面跳转提示$("#tishi").show(); //显示页面跳转提示var delay;$("#time").val(3); //页面文本显示初始值//定义页面延... 阅读全文
posted @ 2015-09-18 15:39 燕萧云 阅读(933) 评论(0) 推荐(0)
摘要:public void mark(String srcImgPath, String outImgPath, Color markContentColor, String waterMarkContent,Integer degree) {try {// 读取原图片信息File srcImgFile... 阅读全文
posted @ 2015-09-09 11:14 燕萧云
摘要:get(Object key))key:是指定的Map集合中的键名。该方法返回指定键所映射的值。如果此映射不包含该键的映射关系,则返回null。public static void main(String[] args) {Map map = new HashMap();//定义Map集合对象map... 阅读全文
posted @ 2015-09-09 11:11 燕萧云 阅读(176) 评论(0) 推荐(0)
摘要:dom4j 中要迭代某个元素的所有子元素:for(Iterator it=root.elementIterator();it.hasNext()){Element element =it.hasNext();……}Iterator是Java迭代器最简单的实现,为List设计的ListIterator... 阅读全文
posted @ 2015-09-09 11:07 燕萧云
摘要:public void BaseOperation(){//创建一个documentDocument document=DocumentHelper.createDocument();//创建根结点Element root=document.addElement("root");//为根结点添加一个... 阅读全文
posted @ 2015-09-09 11:02 燕萧云
摘要:要使用dom4j读写XML文档,需要先下载dom4j包,dom4j官方网站在 http://www.dom4j.org/目前最新dom4j包下载地址:http://nchc.dl.sourceforge.net/sourceforge/dom4j/dom4j-1.6.1.zip解开后有两个包,仅操作... 阅读全文
posted @ 2015-09-09 11:01 燕萧云
摘要:JAXB主要用来实现对象和XML之间的序列化和反序列化用于序列化的XmlUtilpackage cn.lzrabbit;import java.io.StringReader;import java.io.StringWriter;import javax.xml.bind.*;public cla... 阅读全文
posted @ 2015-09-09 09:57 燕萧云
摘要:1、SqlMapClientFactoryBean 的装配 SqlMapClientFactoryBean是SqlMapClientTemplate使用的基础,如果在 SpringFramework应用中没有装配SqlMapClientFactoryBean,那么SqlMapClientTempl... 阅读全文
posted @ 2015-09-01 18:01 燕萧云
摘要:在struts.xml文件中package元素用于定义包配置,每个package元素定义了一个包配置。它的常用属性有:lname:必填属性,用来指定包的名字。lextends:可选属性,用来指定该包继承其他包。继承其它包,可以继承其它包中的Action定义、拦截器定义等。lnamespace:可选属... 阅读全文
posted @ 2015-09-01 11:41 燕萧云
摘要:想搭建基于JSR303的项目环境,你需要如下4个构件:hibernate-validator-4.2.0.Final.jarslf4j-api-1.6.1.jarvalidation-api-1.0.0.GA.jar一个简单的POJO,其中采用如下效验规则:package com.test.requ... 阅读全文
posted @ 2015-09-01 10:35 燕萧云
摘要:Spring在第三方依赖包中包含了两个数据源的实现类包,其一是Apache的DBCP,其二是C3P0。可以在Spring配置文件中利用这两者中任何一个配置数据源。DBCP数据源DBCP类包位于/lib/jakarta-commons/commons-dbcp.jar,DBCP是一个依赖Jakarta... 阅读全文
posted @ 2015-09-01 10:00 燕萧云