关闭
当前搜索:

Is refactor method to field in this case?

public class WebContext(){ private HttpServletRequest request; private WebContext(){}; public static WebContext newPrototype(HttpServletRequest request){ WebContext wc = new WebContex...
阅读(114) 评论(0)

java ThreadLocal proplem

private HttpServletRequest request; private static ThreadLocal wcHolder = new ThreadLocal(); private WebContext(){} public static WebContext newInstance(HttpServletReques...
阅读(121) 评论(0)

代理-Cglib

代理是用来做什么的?一段代码:public class CglibTest{ public static void main(String[] args) { //normal System.out.println("//normal test..."); MyInterface mf = new MyInterfaceImpl();...
阅读(127) 评论(0)

Spring依赖注入properties,Map,List

注入Properties #1 aaaa aaaa1...
阅读(221) 评论(0)

Spring transaction

题目1:账户1的初始金额为500,更新金额为501,并在更新账户1的过程中发现异常。问有和没有@transaction配置,结果会有什么不同?题目2:与题目1一样,不同的是有@transaction,这时更新账户1时发生异常。问内部处理异常(try..catch..)和抛出异常(throw..),结果会有什么不同?小结1,@transaction属于java事务处理 2,当且仅当@transact...
阅读(126) 评论(0)

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

为什么要对URL进行编码、解码...
阅读(331) 评论(0)
    个人资料
    • 访问:22589次
    • 积分:447
    • 等级:
    • 排名:千里之外
    • 原创:22篇
    • 转载:3篇
    • 译文:2篇
    • 评论:0条