Comments (4)
感谢反馈,非常规范的描述,我们会尽快确认处理。
from diboot.
先将mysql数据库表里的timestamp字段数据类型切换为datetime,datetime可直接转换为LocalDateTime.
from diboot.
还是动态改代码先临时解决了, 供参考:
public static class TimestampToLocalDateTimeConverter implements Converter<Timestamp, LocalDateTime> {
@Override
public LocalDateTime convert(Timestamp source) {
if (null == source) {
return null;
}
return source.toLocalDateTime();
}
}
public final static DefaultConversionService defaultConversionService = new DefaultConversionService();
static {
defaultConversionService.addConverter(new TimestampToLocalDateTimeConverter());
}
public static void setProperty(Object obj, String field, Object value) {
BeanWrapper wrapper = PropertyAccessorFactory.forBeanPropertyAccess(obj);
wrapper.setConversionService(defaultConversionService);
wrapper.setPropertyValue(field, value);
}
from diboot.
新版本已优化,预置了几个必需的Converter,感谢反馈
from diboot.
Related Issues (20)
- 上传文件失效 HOT 3
- 后台创建新用户,第一次登陆进来404 HOT 1
- 使用BindEntityList中间表关联查询数据被覆盖问题 HOT 1
- is_deleted, update_time , create_time等字段是否能自定义? HOT 1
- entity中如果有localdatetime在copyproperty会失败 HOT 2
- 生成的sql delete有问题 HOT 4
- 新项目,默认用户表无法新建用户,没有进接口直接抛出NPE
- 获取对象属性值出错,返回null HOT 2
- BaseCrudRestController#getViewObjectList 无法有效过滤字段
- Binder.convertAndBindRelations 对象超过三层嵌套无法生效 diboot版本2.6spring版本2.5 HOT 1
- [建议]关于远程绑定RemoteBindingManager的改进 HOT 2
- [建议] 前端增加Vue3版本 HOT 1
- [建议] 关于老项目接入diboot HOT 2
- [diboot 新手训练营]构建报错 HOT 1
- Get 请求 String2LocalDateTimeConverter 字符串转换器报错 HOT 1
- 关于查询结果返回联表+字典翻译 HOT 2
- BindCount bug HOT 2
- 为什么不支持拓展用户表 HOT 1
- bindcount问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diboot.