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 11/*
2- * Copyright 2010-2022 the original author or authors.
2+ * Copyright 2010-2023 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2727import org .mybatis .spring .SqlSessionTemplate ;
2828import org .springframework .aop .scope .ScopedProxyFactoryBean ;
2929import org .springframework .aop .scope .ScopedProxyUtils ;
30+ import org .springframework .aot .AotDetector ;
3031import org .springframework .beans .factory .annotation .AnnotatedBeanDefinition ;
3132import org .springframework .beans .factory .config .BeanDefinition ;
3233import org .springframework .beans .factory .config .BeanDefinitionHolder ;
@@ -87,7 +88,7 @@ public class ClassPathMapperScanner extends ClassPathBeanDefinitionScanner {
8788
8889 public ClassPathMapperScanner (BeanDefinitionRegistry registry ) {
8990 super (registry , false );
90- setIncludeAnnotationConfig (!NativeDetector . inNativeImage ());
91+ setIncludeAnnotationConfig (!AotDetector . useGeneratedArtifacts ());
9192 setPrintWarnLogIfNotFoundMappers (!NativeDetector .inNativeImage ());
9293 }
9394
You can’t perform that action at this time.
0 commit comments