11 2011 档案

摘要:// 1.打印数组ArrayUtils.toString(newint[] { 1, 4, 2, 3 });// {1,4,2,3}ArrayUtils.toString(new Integer[] { 1, 4, 2, 3 });// {1,4,2,3}ArrayUtils.toString(null, "I'm nothing!");// I'm nothing!// 2.判断两个数组是否相等,采用EqualsBuilder进行判断// 只有当两个数组的数据类型,长度,数值顺序都相同的时候,该方法才会返回True// 2.1 两个数组完全相同ArrayU 阅读全文
posted @ 2011-11-26 17:36 七郎 编辑
摘要:common-lang (2.1)ArrayUtils常量中包含了基本类型(及其相对应类)的空数组。提供向数组增加元素(包括增加单个元素或是整个数组),删除元素,翻转元素排列次序克隆数组(基本类型)查找数组中的元素(是否包含,返回索引)获得数组长度(null安全,返回为0)数组是否为空,数组是否相等,长度是否相等,元素类型是否相同,基本类型对应类数组转换成基本类型数组转成字符串BooleanUtilsBoolean的转换(可转成int,String)CharUtils针对Char的工具类包括判断是不是ASCII字符,是不是控制符可打印与否,转成整形ClassUtils获得包名,获得类的所有超类 阅读全文
posted @ 2011-11-26 17:20 七郎 编辑
摘要:访问weblogic的一个页面,页面上出现一个错误:Error 404--Not Found From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:10.4.5 404 Not FoundThe server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.If the server does not wish to make this info 阅读全文
posted @ 2011-11-17 20:06 七郎 编辑
摘要:此种方法保证在Tomcat和Weblogic下都不会产生乱码1、<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/> 更改tomcat编码,tomcat默认为iso-8859-12、web.xml 配置spring 编码<filter><filter-name>encodingFilter< 阅读全文
posted @ 2011-11-16 15:17 七郎 编辑
摘要:修改代码字体设置:1. 找到jFace并用WinRAR打开之: jFace的具体位置:Eclipse/plugins/org.eclipse.jface_3.7.0.I20110522-1430.jar,找到后,用WinRAR打开。2. 找到并修改字体属性: 打开后,依次展开:/org/eclipse/jface/resources,这里,你将看到不同操作系统的字体设置,比如 jfacefonts_hp_ux,properties里保存了HP-UX系统的字体设置,jfacefonts_macosx.properties 则保存了Mac X的字体设置。找到Windows 7/Vista. 阅读全文
posted @ 2011-11-13 20:09 七郎 编辑
摘要:<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>将<%@ taglib uri=&quo 阅读全文
posted @ 2011-11-10 12:17 七郎 编辑

点击右上角即可分享
微信分享提示