`
oyzzhou
  • 浏览: 25322 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
文章列表
  12 Things Every Programmer Should Know Programmers are a subset of creators have the responsibility to shape the new world 1.Be passionate Love what you are doing Be creative Want to do it best Better than yesterday 2.Love Your Codes Write codes for hunman,but dad programmers write cod ...
Java: import java.text.SimpleDateFormat;   SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); ActionScript: import mx.formatters.DateFormatter;   private var dateFormatter:DateFormatter = new DateFormatter(); dateFormatter.formatString = "YYYY-MM-DD JJ:NN: ...

HTTP常见错误代码

    博客分类:
  • Web
HTTP 状态代码 如果向您的服务器发出了某项请求要求显示您网站上的某个网页(例如,当用户通过浏览器访问您的网页或在 Googlebot 抓取该网页时),那么,您的服务器会返回 HTTP 状态代码以响应该请求。 此状态代码提供了有关请求状态的信息,且为 Googlebot 提供了有关您网站和请求的网页的信息。 一些常见的状态代码为: 200 - 服务器成功返回网页 404 - 请求的网页不存在 503 - 服务器暂时不可用 以下提供了 HTTP 状态代码的完整列表。点击链接可了解详细信息。您也可以访问有关 HTTP 状态代码的 W3C 页来了解详 ...

手动打包jar

    博客分类:
  • Java
jar cvf test.jar * 参考:http://developer.51cto.com/art/200509/2770.htm

JDK环境变量设置

    博客分类:
  • Java
我的电脑->属性->高级->环境变量->系统变量中添加以下环境变量: JAVA_HOME=C:\Program Files\Java\jdk1.6.0_24CLASSPATH=.;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\bin; Path=%JAVA_HOME%\bin;  
OSCache资源下载http://www.opensymphony.com/oscache/ OSCache官方网站http://www.opensymphony.com/oscache/ 缓存对象 http://www.cnblogs.com/gaoyoubo/articles/1797873.html 错误信息:commons-logger.jar和你的log4j.jar版本不兼容 org.apache.commons.modeler.Registry registerComponent  Catalina:type=JspMonitor,WebModule=//loc ...
Eclipse里写一个properties的文件时,里面要输入中文,居然出现发如下提示错误:   characters cannot be mapped using “ISO-8859-1“ character encoding. Either change the encoding or remove the characters which are not supported by the “ISO-8859-1“ character encoding. 解决方案: eclipse/MyEclipse--> window --> Preferences --> ...
页面代码   <script type="text/javascript"> /** * 查询结果的页码跳转 * @author ozz */ function jumpTo(flag) { var currentPage = parseInt(document.getElementById("currentPage").innerHTML); if(flag == "first") { currentPage = 1; } else if(flag == &qu ...
Calendar c = Calendar.getInstance(); c.setTime(new Date()); //设置当前日期 c.add(Calendar.DATE, 1); //日期加1 Date date = c.getTime(); //结果   var d = new Date(new Date().getTime()+1000*60*60*24);alert(d.getFullYear() + "年" + (d.getMonth()+1) + "月" + d.getDate() + "日");   ...
java.util.ResourceBundle 和java.util.properties 读取配置文件区别   这两个类都是读取properties格式的文件的,而Properties同时还能用来写文件。       Properties的处理方式是将其作为一个映射表,而且这个类表示了一个持久的属性集,他是继承HashTable这个类。ResourceBundle本质上也是一个映射,但是它提供了国际化的功能。       假设电脑设置的地区是中国大陆,语言是中文       那么你向ResourceBundle(资源约束名称为base)获取abc变量的值的时候,ResourceBundl ...
这是struts2的一个拦截器报的错误,当你的form中的数据有问题,比如说<input type="text" name="receiverLoginID" value="<%=name%>"/>当 name值为NULL时,就出这个错了,所以你可以在当前页面加入以下标签<div style="color:red">    <s:fielderror /></div>它就会显示拦截器的错误,并在struts的XML中对应action里加如<result ...
Global site tag (gtag.js) - Google Analytics