0%

IO模型

对IO的变成模型一直比较模糊,分不清楚什么同步阻塞,同步非阻塞等概念,对理解一些网络编程框架造成不少的困扰,花时间理了一下,有理解不到位的地方,烦请客官留言。

Unix编程中将IO模型分为5种:

  1. 阻塞IO
  2. 非阻塞IO
  3. IO复用
  4. 信号驱动IO
  5. 异步IO
    阅读全文 »

Mybatis Parameters JDBC Type

Mybatis的sqlmap中Parameters的jdbcType参数可以不设置,Parameters 官方文档中解释:

The JDBC Type is required by JDBC for all nullable columns, if null is passed as a value. You can investigate this yourself by reading the JavaDocs for the PreparedStatement.setNull() method.

阅读全文 »