Spring JPA 属性是 javax 还是 Jakarta?

huangapple go评论59阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年6月6日 06:20:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/76410337.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定