Skip to content

hopejeke/Mybatis-DateTimeToString

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Mybatis-DateTimeToString

通过修改mybatis源码自动将mysql的dateTime类型转为java的String类型

About

公司的项目mysql数据库日期用的是datetime类型,javabean用的是String类型,转换的时候会多出.0,要手动格式化很麻烦,Mybatis提供的接口需要在每个sql里面都配置,也很麻烦,所以我修改了mybatis的源码,可以自动转换

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors