- 浏览: 646895 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (608)
- Java (125)
- Struts (16)
- Spring (19)
- iBatis (11)
- Hibernate (14)
- Oracle (33)
- Mysql (22)
- JBoss (4)
- JavaScript (46)
- Ajax (9)
- jQuery (5)
- web (25)
- Html (14)
- Exception (26)
- Linux (106)
- Vim (11)
- Python (12)
- ComputerTech (25)
- 文章 (50)
- Maven (20)
- FreeMarker (5)
- Json (0)
- Tomcat (6)
- ActiveMQ (2)
- Test (1)
- Git (5)
- Shell (1)
- 《Java并发编程实践》 (2)
- 产品设计 (1)
- xxx (0)
- diamond (1)
- dubbo (1)
- Raspbian (1)
- IDE (3)
- 并发编程 (1)
最新评论
-
mikzhang:
抱歉,写这篇文章时,博主开发的程序只面对IE浏览器,故没考虑其 ...
JS 中改变confirm默认按钮提示“确定""取消" -
poterliu:
测试过了,发现execScript方法只支持IE浏览器。目前已 ...
JS 中改变confirm默认按钮提示“确定""取消"
使用DateFormat的使用,然后自己试了下,结果出来个错误:
java.text.ParseException: Unparseable date: "11/10/10"
at java.text.DateFormat.parse(DateFormat.java:337)
下面是Date的输出比较:
Date date = new Date(); System.out.println(date.toString());//Wed Nov 10 10:15:05 CST 2010 DateFormat df = new SimpleDateFormat ("yyyy-MM-dd"); Date d1 = df.parse("2001-01-01"); System.out.println(d1.toString());//Mon Jan 01 00:00:00 CST 2001 DateFormat df2 = DateFormat.getDateInstance(DateFormat.SHORT); System.out.println(df2.format(new Date())); // 11/10/10 中文系统下:10-11-10 Date d2 = df2.parse("11/10/10"); System.out.println("DateFormat.SHORT: " + d2.toString());//DateFormat.SHORT: Wed Nov 10 00:00:00 CST 2010 DateFormat df3 = DateFormat.getDateInstance(DateFormat.MEDIUM); System.out.println(df3.format(new Date())); //Nov 10, 2010 中文系统下:2010-11-10 Date d3 = df3.parse("Nov 10, 2010"); System.out.println("DateFormat.MEDIUM: " + d3.toString());//DateFormat.MEDIUM: Wed Nov 10 00:00:00 CST 2010 DateFormat df4 = DateFormat.getDateInstance(DateFormat.LONG); System.out.println(df4.format(new Date())); //November 10, 2010 中文系统下:2010年11月10日 Date d4 = df4.parse("November 10, 2010"); System.out.println("DateFormat.LONG: " + d4.toString());//DateFormat.LONG: Wed Nov 10 00:00:00 CST 2010
发表评论
-
Oracle_ojdbc6 使用 报错
2015-06-10 14:29 952via: http://sd8089730.iteye.c ... -
It is indirectly referenced from required .class file
2014-08-19 15:30 407via: http://www.blogjava.net/z ... -
Hibernate_a different object with the same identifier value was already associat
2014-07-05 17:03 482via: http://www.blogjava.net/h ... -
Connection reset by peer: socket write error
2013-03-14 10:24 825Connection reset by peer: soc ... -
java.sql.SQLException: 索引中丢失 IN 或 OUT 参数
2012-05-07 17:00 2527java.sql.SQLException: 索引中丢失 ... -
org.apache.coyote.tomcat5.CoyoteResponseFacade.sendRedirec
2012-03-19 15:25 1594【from http://www.cxy.me/bbs/vie ... -
request.getHeader("referer") is null
2012-03-19 15:23 924referer 用来判断上一页是不是自己的网站 如果我 ... -
ORA-14551: cannot perform a DML operation inside a query
2012-04-26 14:49 1060ORA-14551: cannot perform a ... -
Struts FileUpload - Processing of multipart/form-data request failed
2011-09-16 15:52 7264Struts FileUpload 异常处 ... -
HTTP Status 500 - No action instance for path could be created
2011-09-16 15:03 1680HTTP Status 500 - No action ... -
java.sql.SQLException: ORA-01830: date format picture ends before converting ent
2011-08-17 17:48 3370java.sql.SQLException: ORA-0 ... -
Bean property 'xxDao' is not writable or has an invalid setter method
2011-08-08 16:25 8697Bean property 'xxDao' is not ... -
SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null];
2011-08-04 15:38 2193网上解决方案 1.起初没有创建序列s_log,因此需要在Or ... -
org.xml.sax.SAXParseException: Document root element "struts-config", must match
2011-08-01 22:19 1647org.xml.sax.SAXParseException: ... -
Error creating form bean of class...
2011-08-01 10:44 983Error creating form bean of cla ... -
[interceptor.FileUploadInterceptor:intercept] [Removing file filesXXX .tmp]
2011-07-25 11:18 4468上传完文件时控制台显示[interceptor.FileUpl ... -
The Network Adapter could not establish the connection
2011-07-15 17:05 12301、oracle配置 oracle9i2中把C:\ora ... -
java.sql.SQLException: ORA-00933: SQL 命令未正确结束
2011-06-30 12:16 2091java.sql.SQLException: ORA-0093 ... -
ORA-00942 Table or View Does Not Exist Oracle Error
2011-06-22 23:55 4413Cause: java.sql.SQLException: ... -
getOutputStream() has already been called for this response
2011-06-22 23:48 1595java.lang.IllegalStateExceptio ...
相关推荐
NULL 博文链接:https://speed-guo.iteye.com/blog/903163
如下sql,JSON_OBJECT函数中存在CAST函数,随后报出ParseException问题! SELECT JSON_ARRAYAGG(obj) FROM (SELECT trt.relevance_id,JSON_OBJECT('id',CAST(trt.id AS CHAR),'taskName',trt.task_name,'openStatus'...
通过解读源码,在windows下ok,而在linux下解析格式有所不同才导致上面的各种异常,最终修改了源码包中的Encoder.java,整合ffmpeg-2.7.2-x64版本 3、转码后MP3时长最多一分钟 参考文献: 1、jave-1.0.2源码下载...
jmeter jar包,自己在用,希望可以帮到您,一切都是为了积分,为了可以下载更多的资源,冲啊,下载放到lib/ext文件夹里,重启jmeter
- I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect - Retrying request - I/O exception (java.net.ConnectException) caught when processing request:...
xxl-job-admin后台程序,整合了nacos和openfeign。可以通过openfeign调用接口动态添加修改定时任务,前提是需要nacos
Android Build 时报错: java.io.IOException: Could not parse XML from android/accounts/annotati...Android构建时报错: app:lintVitalRelease[Fatal Error] :3:214: 与元素类型 “item” 相关联的 “name” ...
Exception in thread "main" java.text.ParseException: Unparseable date: "1970-01-06 11:45:55" 改正: //Date或者String转化为时间戳 SimpleDateFormat format = new SimpleDateFormat( " yyyy-MM-dd HH:mm...
at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:237) at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:841) at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:808...
1.下载两个jar包 1.bcprov-ext-jdk15on-1.54.jar 2.bcprov-jdk15on-1.54.jar ... 2.将下载的两个JAR文件复制到:JDK安装目录\jre\...3.打开java.security文件:在JDK安装目录\jre\lib\security下的java.security文件。
nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis- config.xml]; nested exception is org.apache.ibatis.builder....
UserAgentInfo userAgentInfo = UserAgentUtil.uasParser.parse(str); System.out.println("操作系统名称:"+userAgentInfo.getOsFamily());// System.out.println("操作系统:"+userAgentInfo.getOsName());// ...
附件解决dbf读取文件时遇到乱码问题,下载下来可以直接使用,无需使用dbf的jar包了,可以直接使用.
Jboss启动报Failed to parse WEB-INFweb.xml; - nested throwable错误
Error:in ./node-modules/axios/lib/platform/index.js
var key = CryptoJS.enc.Utf8.parse("1234567890000000"); //16位 var iv = CryptoJS.enc.Utf8.parse("1234567890000000"); var encrypted = ''; if (typeof(word) == 'string') { var srcs = CryptoJS.enc.Utf...
java中时间类Date和Calendar的使用 java中时间类Date和Calendar的使用 <PRE class=java name="code">... import java.text.ParseException; import java.text.SimpleDateFormat; 解压密码 www.jiangyea.com
import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; /** * * @author * 版本号:CATTSOFT 1.2.0 * 日期:2009年3月8日 * 功能:比较两个日期的大小 */ public ...
Warning: prerequisite Date::Parse 0 not found at (eval 1) line 219. Warning: prerequisite File::Tail 0 not found at (eval 1) line 219. Warning: prerequisite Time::HiRes 1.12 not found at (eval 1) line...
JEP 可用于解析字符串数学表达式的类库 最新完整版(含jar) 可解析 诸如 "2+3*5" 这样的数学表达式