• Spring @Autowired注入过程

    Spring @Autowired注入过程 @Autowired的具体实现可以参照spring framework进行更详细的探索,目前可以确定的大致流程为:@Autowired的类实现结构为 顶层接口都是实现的BeanPostProcessor。 注:BeanFactoryPostPr...

  • 面试总结

    1、spring相关面试题(Spring的事务传播机制) 2、常见设计模式(单例模式、工厂模式、适配器模式、代理模式) 3、线程池创建参数、方式;ThreadLocal的应用;线程的默认方法的作用(notify、sleep、interruption) 4、数据库事务的特性、隔离级别;事务的最左原则...

  • spring 事务传播机制

    Spring 事务传播机制 REQUIRED(默认):支持使用当前事务,如果当前事务不存在,创建一个新事务。 SUPPORTS:支持使用当前事务,如果当前事务不存在,则不使用事务。 MANDATORY:中文翻译为强制,支持使用当前事务,如果当前事务不存在,则抛出Exception...

  • 数据库事务以及隔离级别

    数据库事务的特性 数据库事务的特性:原子性、一致性、持久性和隔离性。 数据库在并发访问时可能出现的问题 更新丢失 脏读 不可重复读 幻读 其中,更新丢失是指事务A访问一个数据并修改,未提交,此时事务B对该数据进行修改并提交,事务B完成后,事务A提交自己的事务,则事务...

  • the summary of interview

    ...

  • String、StringBuffer、StringBuilder difference

    Class Diagrams The following diagram show the relationship of String 、StringBuffer and StringBuilder. Compare with them String There is ...

  • the basic concept of java

    ##Java Memory Type Classification Register Native Method field Method field Stack Heap Java Basic Type , Reference Type , Packing type ...

  • the basic concept of kafka

    ...

  • the basic concept of docker

    ## ...

  • the basic concept of redis

    The Basic Concept Of Redis   the basic data type of redis String . format: set key value . String is safe for binary files. It m...