spring_reference/IX. ‘How-to’ guides/73.9.2. JTA API compatibili...

4 lines
463 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### 73.9.2. JTA API兼容性
Java事务API自身并不要求Java 7而是官方的API jar包含的已构建类要求Java 7。如果你正在使用JTA那么你需要使用能够在Java 6工作的构建版本替换官方的JTA 1.2 API jar。为了完成该操作你需要排除任何对`javax.transaction:javax.transaction-api`的传递依赖,并使用`org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:1.0.0.Final`依赖替换它们。