Fight With Me!!!

导航

上一页 1 2 3 4 5 6 7 8 9 10 ··· 106 下一页

2018年11月8日 #

spring @Bean注解的使用

摘要: @Bean 的用法 @Bean是一个方法级别上的注解,主要用在@Configuration注解的类里,也可以用在@Component注解的类里。添加的bean的id为方法名 定义bean 下面是@Configuration里的一个例子 这个配置就等同于之前在xml里的配置 bean的依赖 @bean 阅读全文

posted @ 2018-11-08 11:31 nickTimer 阅读(4773) 评论(0) 推荐(0) 编辑

2018年11月1日 #

Cannot forward to error page for request ......

摘要: 今天现场报了以下问题: 从这个错误信息中,我们可以看到,信息提示我们无法前进到错误页面,在请求:/order/search这个url时。后面又提示我们,可以返回了一个错误的状态编码,然后提示我们去设置一个环境变量。 从这个情况中,我们可以预想到以下几种原因: 1.forward的url关联的视图存在 阅读全文

posted @ 2018-11-01 17:01 nickTimer 阅读(5648) 评论(0) 推荐(0) 编辑

Connection reset by peer原理解析

摘要: “Connection reset by peer”代表什么?“Connection reset by peer”表示当前服务器接受到了通信对端发送的TCP RST信号,即通信对端已经关闭了连接,通过RST信号希望接收方关闭连接。 The remote server has sent you a R 阅读全文

posted @ 2018-11-01 16:32 nickTimer 阅读(29037) 评论(0) 推荐(1) 编辑

2018年10月21日 #

ExecutorService——shutdown方法和awaitTermination方法

摘要: ExecutorService的关闭shutdown和awaitTermination为接口ExecutorService定义的两个方法,一般情况配合使用来关闭线程池。 方法简介shutdown方法:平滑的关闭ExecutorService,当此方法被调用时,ExecutorService停止接收新 阅读全文

posted @ 2018-10-21 11:43 nickTimer 阅读(634) 评论(0) 推荐(0) 编辑

postgresql数据库varchar、char、text的比较

摘要: 名字 描述character varying(n), varchar(n) 变长,有长度限制character(n), char(n) 定长,不足补空白text 变长,无长度限制简单来说,varchar的长度可变,而char的长度不可变,对于postgresql数据库来说varchar和char的区 阅读全文

posted @ 2018-10-21 11:12 nickTimer 阅读(4896) 评论(0) 推荐(0) 编辑

Java CompletableFuture:allOf等待所有异步线程任务结束

摘要: 输出: 可以看到f2很快就返回,是因为f2仅耗时2秒。f1需要耗时3秒,因此在f2结束后一秒,f1也返回。此时才执行join后的代码。 作者:zhangphil 来源:CSDN 原文:https://blog.csdn.net/zhangphil/article/details/80670593?u 阅读全文

posted @ 2018-10-21 11:11 nickTimer 阅读(1506) 评论(0) 推荐(0) 编辑

2018年10月19日 #

PowerDesigner一些小技巧

摘要: 使用powerdesigner进行数据库设计确实方便,以下是一些常用的设置 附加:工具栏不见了 调色板(Palette)快捷工具栏不见了PowerDesigner 快捷工具栏 palette 不见了,怎么重新打开,找回来呢 上网搜索了一下”powerdesigner 图形工具栏”,找到了找回Powe 阅读全文

posted @ 2018-10-19 17:25 nickTimer 阅读(746) 评论(0) 推荐(0) 编辑

2018年10月16日 #

Access restriction 问题解决

摘要: 最近导入新项目,导入所有用到的jar包,发现其中一个引用报错 import com.sun.istack.internal.Nullable; 具体信息如下: Access restriction: The type Nullable is not accessible due to restric 阅读全文

posted @ 2018-10-16 17:25 nickTimer 阅读(278) 评论(0) 推荐(0) 编辑

2018年10月14日 #

fastJson注解@JSONField使用的一个实例

摘要: 1.实体类 2.测试类 3.结果 4.参考 关于@JsonField的name属性详解见:http://www.cnblogs.com/softidea/p/5681928.html 阅读全文

posted @ 2018-10-14 12:11 nickTimer 阅读(777) 评论(0) 推荐(0) 编辑

Fastjson 实体类JSON化过滤字段操作-PropertyFilter

摘要: 过滤实体类中年龄等于5的字段 打印: [{“age”:0,”name”:”liu”},{“age”:1,”name”:”liu”},{“age”:2,”name”:”liu”},{“age”:3,”name”:”liu”},{“age”:4,”name”:”liu”},{“name”:”liu”}, 阅读全文

posted @ 2018-10-14 12:03 nickTimer 阅读(2374) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 106 下一页