摘要:
spring 支持编程式事务和声明式事务 1. 通过编码定义事务 try{ DefaultTransactionDefinition td = new DefaultTransactionDefinition( TransactionDefinition.PROPAGATION_REQUIRED); 阅读全文
posted @ 2017-07-19 19:09
newlangwen
阅读(172)
评论(0)
推荐(0)
摘要:
当我们去实例化beans.xml,该文件中配置的 bean 就被实例化(不论你用还是不用,bean对象都在那),而且该对象是singleton单例的。(每个bean都有scope属性,可以人为的设置任意的bean为单态的,scope="singleton",scope="prototype"则每获得 阅读全文
posted @ 2017-07-19 17:28
newlangwen
阅读(188)
评论(0)
推荐(0)
摘要:
1. Throwable 子类 Error 和 Exception Error(错误): 一般是指java虚拟机相关的问题,如系统崩溃、虚拟机出错误、动态链接失败等,这种错误无法恢复或不可能捕获,将导致应用程序中断,通常应用程序无法处理这些错误,因此应用程序不应该捕获Error对象,也无须在其thr 阅读全文
posted @ 2017-07-19 10:33
newlangwen
阅读(133)
评论(0)
推荐(0)
摘要:
首先了解类的加载过程 ClassLoader: 抽象类,遵循双亲委派模型,A typical strategy is to transform the name into a file name and then read a "class file" of that name from a fil 阅读全文
posted @ 2017-07-19 08:50
newlangwen
阅读(157)
评论(0)
推荐(0)

浙公网安备 33010602011771号