Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有适用于 javax.persistence.*的DuplicateKeyException之类的东西?
我发现此异常仅适用于 ejb lib:DuplicateKeyException
谢谢你。
javax.persistence.EntityExistsException 是如果您尝试将某些内容保存为重复键,您通常会从 JPA 提供者那里得到什么。