File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
src/main/java/com/example/nativedemo Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >org.springframework.boot</groupId >
7
7
<artifactId >spring-boot-starter-parent</artifactId >
8
- <version >3.1.5 </version >
8
+ <version >3.2.0 </version >
9
9
<relativePath /> <!-- lookup parent from repository -->
10
10
</parent >
11
11
<groupId >com.example</groupId >
25
25
<dependency >
26
26
<groupId >com.baomidou</groupId >
27
27
<artifactId >mybatis-plus-spring-boot3-starter</artifactId >
28
- <version >3.5.4 -SNAPSHOT</version >
28
+ <version >3.5.5 -SNAPSHOT</version >
29
29
</dependency >
30
30
<dependency >
31
31
<groupId >org.springframework.boot</groupId >
36
36
<groupId >org.graalvm.sdk</groupId >
37
37
<artifactId >graal-sdk</artifactId >
38
38
<version >22.3.1</version >
39
+ <scope >provided</scope >
39
40
</dependency >
40
41
</dependencies >
41
42
Original file line number Diff line number Diff line change 61
61
import org .springframework .beans .factory .config .BeanDefinition ;
62
62
import org .springframework .beans .factory .config .ConfigurableBeanFactory ;
63
63
import org .springframework .beans .factory .config .ConfigurableListableBeanFactory ;
64
+ import org .springframework .beans .factory .config .ConstructorArgumentValues ;
64
65
import org .springframework .beans .factory .support .MergedBeanDefinitionPostProcessor ;
65
66
import org .springframework .beans .factory .support .RegisteredBean ;
66
67
import org .springframework .beans .factory .support .RootBeanDefinition ;
@@ -312,8 +313,11 @@ private void resolveMapperFactoryBeanTypeIfNecessary(RootBeanDefinition beanDefi
312
313
Class <?> mapperInterface = getMapperInterface (beanDefinition );
313
314
if (mapperInterface != null ) {
314
315
// Exposes a generic type information to context for prevent early initializing
315
- beanDefinition
316
- .setTargetType (ResolvableType .forClassWithGenerics (beanDefinition .getBeanClass (), mapperInterface ));
316
+ ConstructorArgumentValues constructorArgumentValues = new ConstructorArgumentValues ();
317
+ constructorArgumentValues .addGenericArgumentValue (mapperInterface );
318
+ beanDefinition .setConstructorArgumentValues (constructorArgumentValues );
319
+ beanDefinition .setConstructorArgumentValues (constructorArgumentValues );
320
+ beanDefinition .setTargetType (ResolvableType .forClassWithGenerics (beanDefinition .getBeanClass (), mapperInterface ));
317
321
}
318
322
}
319
323
}
You can’t perform that action at this time.
0 commit comments