2018年8月

JdbcType介绍数据库列字段都是有类型的,不同的数据库有不同的类型。为了表示这些数据类型,Java源码是采用枚举来定义的:public enum JDBCType implements SQ...

源码走读系列先不再网上发布了,很多类写的其实挺简单的,也没有什么可以说的,发布到网上显得空洞,后期抓住几个重点类介绍就可以了。但是源码走读不会终止的,因为后期各种问题的解决,还的靠源码的分析。

@Documented@Retention(RetentionPolicy.RUNTIME)@Target({})public @interface Result { boolean id()...

@Documented@Retention(RetentionPolicy.RUNTIME)@Target(ElementType.METHOD)public @interface Option...

@Documented@Retention(RetentionPolicy.RUNTIME)@Target({})public @interface One { String select()...

@Documented@Inherited@Retention(RUNTIME)@Target({ TYPE, METHOD, FIELD, PARAMETER })public @interf...

@Documented@Retention(RetentionPolicy.RUNTIME)@Target(ElementType.METHOD)public @interface MapKey...

@Documented@Retention(RetentionPolicy.RUNTIME)@Target({})public @interface Many { String select(...

@Documented@Retention(RetentionPolicy.RUNTIME)@Target(ElementType.METHOD)public @interface Lang {...

@Documented@Retention(RetentionPolicy.RUNTIME)@Target(ElementType.METHOD)public @interface Flush ...

ConstructorArgs类很简单,如下所示,其实源码并不想想象中那么难,很多代码写的很短小的。很多人想写个开源东西,让自己简历更出彩,其实开源并不是很难的。不过,要想写出高质量的开源成品,...

Case类用于动态sql生成部分。@Documented @Retention(RetentionPolicy.RUNTIME) @Target({}) public @interface Ca...

AutomapConstructor类,有点意思,看其注释:The marker annotation that indicate a constructor for automatic map...

Arg类所在的包package org.apache.ibatis.annotations;Arg类源码@Retention(RetentionPolicy.RUNTIME) public @i...

紧接上文,我给大家来个续文,之前没有这个想法,突然感觉有料了,就赶紧来篇续文。看不懂,没有关系。时间会解决一切问题的。在群里有个小伙伴提出一个问题,关于Kafka的,他使用的是python语言发...

主线程是从main函数开始的。非主线程,是从run函数开始的。run不要当做是普通的函数,函数是翻译过来的,原文是procedure,意指过程。main的准确描述是entry,而run也应该是e...