mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Add spring-jdbc as well if necessary
This commit is contained in:
parent
2b5a67ba3c
commit
f76662a6ec
@ -33,10 +33,13 @@ public class TransactionManagementCompilerAutoConfiguration extends
|
||||
|
||||
@Override
|
||||
public void applyDependencies(DependencyCustomizer dependencies) {
|
||||
dependencies.ifAnyMissingClasses(
|
||||
"org.springframework.transaction.annotation.Transactional").add(
|
||||
"org.springframework", "spring-tx",
|
||||
dependencies.getProperty("spring.version"));
|
||||
dependencies
|
||||
.ifAnyMissingClasses(
|
||||
"org.springframework.transaction.annotation.Transactional")
|
||||
.add("org.springframework", "spring-tx",
|
||||
dependencies.getProperty("spring.version"))
|
||||
.add("org.springframework.boot", "spring-boot-starter-aop",
|
||||
dependencies.getProperty("spring-boot.version"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user