JPA 如何实现 insert ignore

常见的方法就是写原生SQL,nativeQuery = true

然后一个脑筋急转弯,写那么多字段干嘛?只要在save 方法上加个try catch不就好了

原文地址:https://www.cnblogs.com/acm-bingzi/p/insert_ignore.html