import org.springframework.dao.DuplicateKeyException;
try{
someMapper.insert(someBean);
//TODO something
}catch(DuplicateKeyException e){
//TODO something else
}
import org.springframework.dao.DuplicateKeyException;
try{
someMapper.insert(someBean);
//TODO something
}catch(DuplicateKeyException e){
//TODO something else
}
本文标题:主键冲突异常 DuplicateKeyException
本文链接:https://www.haomeiwen.com/subject/tcsrrctx.html
网友评论