- 博客(5)
- 资源 (2)
- 收藏
- 关注
原创 HttpClient发起请求Target host is not specified问题分析
问题日志:Exception in thread "main" org.apache.http.client.ClientProtocolException at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187) at org.apache.http.impl.cli...
2019-01-15 12:59:48
53308
原创 关于Maven项目build时出现No compiler is provided in this environment的处理
近日有同事遇到在编译Maven项目时出现[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?的问题, 原以为这是个个例, 源于同事粗心, 配置环境出问题造成, 后到百度查看一下, 遇到这个问题的不在少数, 但是对问题的解释没有说到根源,
2017-06-28 12:42:41
391454
153
转载 Logger日志级别说明及设置方法、说明(转)
日志记录器(Logger)是日志处理的核心组件。log4j具有5种正常级别(Level)。日志记录器(Logger)的可用级别Level (不包括自定义级别 Level), 以下内容就是摘自log4j API (http://jakarta.apache.org/log4j/docs/api/index.html):static Level WARNWARN level表明
2017-06-01 14:02:21
1732
原创 InvocationTargetException异常的深入研究-servlet的setAttribute与getAttribute
在完成某项目过程中,前端jsp传入的用户id数据通过session域传入后台servlet进行处理的过程中,无意间出现了InvocationTargetException异常 前端部分代码如下:测试代码,非原项目代码div> a href="student.action?operation=queryInfo&uid=${uid }" target="mainFrame" cla
2017-05-22 21:39:22
589
原创 java异常处理中的细节
首先看一段代码public class Test{ public static String output=""; public static void foo(int i){ try { if(i==1){ throw new Exception(); } output +="1"; } catch(Except
2017-03-29 10:50:49
421
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅