摘要: try{ dao.inser(entity); } catch (Exception e){ if(e instanceof DuplicateKeyException){ return -2; }else { return -1; } 在service层中 public MessageModel 阅读全文
posted @ 2022-07-29 08:58 lwx_R 阅读(939) 评论(0) 推荐(0) 编辑
摘要: JDBC Type Java Type CHAR String VARCHAR String LONGVARCHAR String NUMERIC java.math.BigDecimal DECIMAL java.math.BigDecimal BIT boolean BOOLEAN boolea 阅读全文
posted @ 2022-07-29 08:53 lwx_R 阅读(37) 评论(0) 推荐(0) 编辑