英文:
Spring jpa properties javax or jakarta?
问题
I am using Spring Boot 3.1. Into Application.yml spring: jpa: properties: javax: Persistence: Validation: mode:none --otherwise spring: jpa: properties: jakarta: Persistence: Validation: mode:none --which one should i use?
哪一个应该使用?
英文:
I am using Spring Boot 3.1. Into Applcation.yml spring: jpa: properties: javax: Persistence: Validation: mode:none --otherwise spring: jpa: properties: jakarta: Persistence: Validation: mode:none --which one should i use?
which one should i use
答案1
得分: 0
Spring 6已经淘汰了javax包,并完全迁移到jakarta包。
这也包括Tomcat 10,它将无法与javax包一起使用。
为了运行Spring Boot 3,您需要将所有依赖项从javax迁移到jakarta,同时Spring Boot 3的最低JDK版本为JDK17。
英文:
Spring 6 retired javax packages and completely moved to jakarta packages.
That also includes Tomcat 10, it will not work with javax packages.
In order to run Spring boot 3, you will need to migrate all dependencies from javax to jakarta and also minimal JDK for Spring Boot 3 is JDK17.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论