Is refactor method to field in this case?

public class WebContext(){ private HttpServletRequest request; private WebContext(){}; public static WebContext newPrototype(HttpServletReq...

2016-12-22 11:13:00

阅读数:151

评论数:0

java ThreadLocal proplem

private HttpServletRequest request; private static ThreadLocal<WebContext> wcHolder = new ThreadLocal<WebContext>(); private WebConte...

2016-12-22 11:11:07

阅读数:178

评论数:0

代理-Cglib

代理是用来做什么的?一段代码:public class CglibTest{ public static void main(String[] args) { //normal System.out.println("//normal test.....

2016-12-19 10:55:39

阅读数:152

评论数:0

Spring依赖注入properties,Map,List

注入Properties #1 <bean id="pro1" class="java.util.Properties"> <constructor-arg> <props> ...

2016-12-16 16:55:39

阅读数:434

评论数:0

Spring transaction

题目1:账户1的初始金额为500,更新金额为501,并在更新账户1的过程中发现异常。问有和没有@transaction配置,结果会有什么不同?题目2:与题目1一样,不同的是有@transaction,这时更新账户1时发生异常。问内部处理异常(try..catch..)和抛出异常(throw..),...

2016-12-16 10:14:16

阅读数:150

评论数:0

为什么要对URL进行编码、解码

为什么要对URL进行编码、解码

2016-12-15 08:46:19

阅读数:493

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭