![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA
iteye_6119
这个作者很懒,什么都没留下…
展开
-
null引用强制转换
null引用强制转换是不会报NullPointerException的。[code="java"]Object abcd = null;Parser test = (Parser) abcd;String test1 = (String) abcd;System.out.println(test);System.out.println(test1);[/code]输...原创 2012-02-27 10:38:03 · 125 阅读 · 0 评论 -
配置tomcat url decode编码
在${TOMCAT_HOMT}/conf/server.xml中,处理请求的Connector中这样配置<Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8"/>原创 2012-03-26 11:04:57 · 602 阅读 · 0 评论 -
exec(cmd)和exec(cmdarray)的区别
public Process exec(String command) throws IOException 和 public Process exec(String cmdarray[]) throws IOException 其实是等价的,最终都会调用 public Process exec(String[] cmdarray, String[] envp, Fi...原创 2012-03-28 10:36:13 · 1004 阅读 · 0 评论 -
HttpServletRequest获取到的各个path信息
request.getContextPath: request.getPathInfo: /path-inforequest.getServletPath: /servlet-pathrequest.getRequestURL: http://domain/servlet-path/path-inforequest.getRequestURI: /servlet-path/p...原创 2012-04-04 10:04:56 · 352 阅读 · 0 评论 -
Guice Create Statck
00002013-02-10 10:36:10 · 77 阅读 · 0 评论