File tree 1 file changed +2
-0
lines changed
src/main/java/org/mybatis/spring/mapper
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 36
36
import org .springframework .beans .factory .support .BeanDefinitionRegistry ;
37
37
import org .springframework .beans .factory .support .RootBeanDefinition ;
38
38
import org .springframework .context .annotation .ClassPathBeanDefinitionScanner ;
39
+ import org .springframework .core .NativeDetector ;
39
40
import org .springframework .core .type .filter .AnnotationTypeFilter ;
40
41
import org .springframework .core .type .filter .AssignableTypeFilter ;
41
42
import org .springframework .util .StringUtils ;
@@ -84,6 +85,7 @@ public class ClassPathMapperScanner extends ClassPathBeanDefinitionScanner {
84
85
85
86
public ClassPathMapperScanner (BeanDefinitionRegistry registry ) {
86
87
super (registry , false );
88
+ setIncludeAnnotationConfig (!NativeDetector .inNativeImage ());
87
89
}
88
90
89
91
public void setAddToConfig (boolean addToConfig ) {
You can’t perform that action at this time.
0 commit comments