异常解决
Chris-Green
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
处理Sql查询遇到这样一个问题(数据库是MySQL),有个字段定义类型是datetime,且非空无默认值,通过PHPMyAdmin界面填充测试数据的时候没有理会这个字段,看到个小警告,插入成功,但是在取数据的时候出现这样一个错误:Value '0000-00-00 00:00:00' can not be represented asjava.sql.Timestamp 因为数据库访问层是自己封装...转载 2018-03-26 16:20:36 · 591 阅读 · 0 评论 -
netty多handler报错:“is not a @Sharable handler ”
1、项目要求多个Handler处理发送过来的各类消息,我本地新建了多个Handler类,再采用Spring注入的方式注入到服务端,客户端中后,报错:is not a @Sharable handler...................参考:https://my.oschina.net/xinxingegeya/blog/295577两种解决方法,要么就是加上注解@Sharable,要么...原创 2018-04-11 16:02:41 · 5649 阅读 · 0 评论
分享