0
Follow
0
View

spring failed to obtain the Bean

cxfchw 注册会员
2023-02-27 11:13

If your scan path is not passed to the context object, use the following constructor:

img

AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("com.itheima");