javax.persistence should be changed to jakarta.persistence to support Spring boot 3. This does involve moving the baseline to Java 17.