提供的功能不一样。具体可以参考:
https://www.baeldung.com/spring-vs-jta-transactional#:~:text=JTA%20Transactional%20annotation%20applies%20to,applies%20only%20to%20Spring%20beans.&text=However%2C%20the%20other%20way%20around,annotations%20outside%20the%20Spring%20context.
自从spring 4.0开始,提供了对JTA @Transctional的支持,但是Spring @Transctional注解不能用于非spring环境。