File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/org/mybatis/spring/mapper Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2010-2022 the original author or authors.
2
+ * Copyright 2010-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
27
27
import org .mybatis .spring .SqlSessionTemplate ;
28
28
import org .springframework .aop .scope .ScopedProxyFactoryBean ;
29
29
import org .springframework .aop .scope .ScopedProxyUtils ;
30
+ import org .springframework .aot .AotDetector ;
30
31
import org .springframework .beans .factory .annotation .AnnotatedBeanDefinition ;
31
32
import org .springframework .beans .factory .config .BeanDefinition ;
32
33
import org .springframework .beans .factory .config .BeanDefinitionHolder ;
@@ -87,7 +88,7 @@ public class ClassPathMapperScanner extends ClassPathBeanDefinitionScanner {
87
88
88
89
public ClassPathMapperScanner (BeanDefinitionRegistry registry ) {
89
90
super (registry , false );
90
- setIncludeAnnotationConfig (!NativeDetector . inNativeImage ());
91
+ setIncludeAnnotationConfig (!AotDetector . useGeneratedArtifacts ());
91
92
setPrintWarnLogIfNotFoundMappers (!NativeDetector .inNativeImage ());
92
93
}
93
94
You can’t perform that action at this time.
0 commit comments