try{ }catch(Exception e){ if(e instanceof DuplicateKeyException ){ ... } }
try catch可以直接捕获DuplicateKeyException 然后在catch里写处理逻辑呀