Skip to content

Commit 0315461

Browse files
Enable AOT repositories by default.
1 parent 645bf5a commit 0315461

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/AotMongoRepositoryPostProcessor.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ public class AotMongoRepositoryPostProcessor extends RepositoryRegistrationAotPr
4444
lazyLoadingProxyAotProcessor.registerLazyLoadingProxyIfNeeded(type, generationContext);
4545
});
4646

47-
boolean enabled = Boolean.parseBoolean(
48-
repositoryContext.getEnvironment().getProperty(AotContext.GENERATED_REPOSITORIES_ENABLED, "false"));
49-
if (!enabled) {
47+
if (!repositoryContext.isGeneratedRepositoriesEnabled("mongodb")) {
5048
return null;
5149
}
5250

0 commit comments

Comments
 (0)