Skip to content

Commit 8a9e6bf

Browse files
christophstroblmp911de
authored andcommitted
Enable AOT repository generation by default.
Original pull request: #5017 Closes #4983
1 parent 7876b92 commit 8a9e6bf

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)