摘要:
try{ dao.inser(entity); } catch (Exception e){ if(e instanceof DuplicateKeyException){ return -2; }else { return -1; } 在service层中 public MessageModel 阅读全文
摘要:
JDBC Type Java Type CHAR String VARCHAR String LONGVARCHAR String NUMERIC java.math.BigDecimal DECIMAL java.math.BigDecimal BIT boolean BOOLEAN boolea 阅读全文