ImageUtil、useGeneratedKeys="true" keyProperty="id"

1.mybatis的insert后时候在xml中写入useGeneratedKeys=“true” keyProperty=“id”,如果数据在数据库中存在的情况下,不会报错,并且id返回为null 2.ImageUtil.resizeImage 使用了swing自带的修改图片大小的API,底层工作原理不必深入研究,反正这么写就行了。。。 链接:https://how2j.cn/k/tmall_s
相关文章
相关标签/搜索