随笔分类 - Java
摘要:Windows 系统安装多个版本JDK, 修改环境变量不生效
阅读全文
摘要:BeanUtil.ConversionException问题: 1:[DEBUG] [2013-05-08 13:41:53,421] [21593]ms [http-8080-1] [org.apache.commons.beanutils.converters.DateConverter#handleMissing#L313] - [ Throwing ConversionException: No value specified for 'Date'][DEBUG] [2013-05-08 13:41:53,421] [21593]ms [http-8080-1] [or
阅读全文
摘要:j2ee 获取上下文环境问题:1.不访问服务,如何获取上下文环境?解答:1.通过在web里面配置servlet来解决。1.1 web.xml1 <servlet>2 <servlet-name>GetContext</servlet-name>3 <servlet-class>com.ge.context.GetContext</servlet-class>4 <load-on-startup>1</load-on-startup>5 </servlet>1.2GetContext.java 1 p
阅读全文
摘要:java.lang.ExceptionInInitializerError问题:1.java.lang.ExceptionInInitializerError1.1问题描述Exception in thread "Timer-0" java.lang.ExceptionInInitializerError at com.service.impl.basicdoc.MobileNoServiceImpl.buildFile(MobileNoServiceImpl.java:110) at com.timer.MyTimerTask.run(MyTimerTask.java:4
阅读全文
摘要:jQuery日期时间控件问题:1.jQuery操作时间的控件解答:1.1 1.<link href="timepicker-addon.css" rel="stylesheet" type="text/css" />2 <script language="javascript" src="jquery-ui-timepicker-addon.js" type="text/javascript"></script>3 2.<s:text
阅读全文
摘要:js操作Map问题:1.js(javascript)如何读取Map解答:1.1 for (var key in map) {2 alert(key);3 alert(map[key]);4 }-----@cobble HF.AH.CHN 2013-04-10资料1:http://blog.csdn.net/jbgtwang/article/details/6590889
阅读全文
摘要:JAVA 打开文件乱码1.问题:1.1 JAVA 打开文件乱码?2.解决:2.1 用java打开文件的时候,读取File文件内容或者流里面的内容时候,需要指定编码格式。如:11 List<String> lines=new ArrayList<String>(); 2 BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream(fileName),"UTF-8")); 3 String line = null; 4 while ((line = br.r
阅读全文
摘要:No result defined for action com.cobble.action.webfilter.LoginAction and result input1.问题现象DEBUG [geby:Errors on action com.cobble.action.webfilter.LoginAction@17414c8, returning result name 'input'] 2013-03-22 10:26:13,375 [com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] -ER
阅读全文
摘要:1.问题现象:Unable to translate SQLException with Error code '1364', will now try the fallback translator] 2013-02-27 17:44:05,703 [org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator] - Extracted SQL state class 'HY' from value 'HY000'] 2013-02-27 17:44:05,703 [or
阅读全文
摘要:Struts2 s:file 上传文件1.文件上传貌似不能异步上传,貌似不能用ajax来实现。
阅读全文
摘要:MyBatis3 association error - The content of element type "resultMap" must match "(constructor?,id*,result*,association*,collection*,discriminator?)"1.后台错误信息-问题现象:ERROR [geby:Context initialization failed] 2013-02-19 10:41:59,968 [org.springframework.web.context.ContextLoader] - o
阅读全文
摘要:题记:MyEclipse 9.x 10.x 破解1.MyEclipse 9.x 参看http://files.cnblogs.com/cobble19/myeclipse_9.1_active.zip2.MyEclipse 10.x 参看http://files.cnblogs.com/cobble19/myeclipse.10.7_crack.rar@cobble HF.AH.CHN 20130219资料来源于互联网。资料1:http://blog.csdn.net/zhang070809/article/details/7423759
阅读全文
摘要:JQGridJQGrid是一个在jquery基础上做的一个表格控件,以ajax的方式和服务器端通信。JQGrid Demo是一个在线的演示项目。在这里,可以知道jqgrid可以做什么事情。下面是转自其他人blog的一个学习资料,与其说是学习资料,说成查询帮助文档更加合适。jqGrid学习之 -------------安装jqGrid安装很简单,只需把相应的css、js文件加入到页面中即可。按照官网文档:/myproject/css/ui.jqgrid.css/ui-lightness//images/jquery-ui-1.7.2.custom.css/myproject/js/ /i18n/
阅读全文
摘要:java byte 循环左移 循环右移 rotateLeft rotateRight1.概念。 循环左移: eg1:byte in = (byte) 0x01;【0000 0001】则循环左移2位后变为【0000 0100】 eg2: btye in = (byte)0x90;[1001 0000],则循环左移2位变为[0100 0010] 循环右移: eg3:byte in = (byte)0x01;[0000 0001]则循环右移2位后变为[0100 0000] eg4:byte in = (byte)0x90;[1001 0000]则循环右移2位后变为[001...
阅读全文
浙公网安备 33010602011771号