IO模型
对IO的变成模型一直比较模糊,分不清楚什么同步阻塞,同步非阻塞等概念,对理解一些网络编程框架造成不少的困扰,花时间理了一下,有理解不到位的地方,烦请客官留言。
Unix编程中将IO模型分为5种:
- 阻塞IO
- 非阻塞IO
- IO复用
- 信号驱动IO
- 异步IO
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.