如题:
db.default.url="jdbc:mysql://localhost:3306/kissbb_data?useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false"
MySQL Type Name | Return value ofGetColumnClassName | Returned as Java Class |
---|---|---|
BIT(1) (new in MySQL-5.0) | BIT | java.lang.Boolean |
BIT( > 1) (new in MySQL-5.0) | BIT | byte[] |
TINYINT | TINYINT | java.lang.Boolean if the configuration property tinyInt1isBit is set to true (the default) and the storage size is 1, orjava.lang.Integer if not. |