diff --git a/docs/content/zh-cn/docs/faq/import-full-springboot-in-module.md b/docs/content/zh-cn/docs/faq/import-full-springboot-in-module.md index 595c6f6e7..c7ec49682 100644 --- a/docs/content/zh-cn/docs/faq/import-full-springboot-in-module.md +++ b/docs/content/zh-cn/docs/faq/import-full-springboot-in-module.md @@ -10,7 +10,7 @@ weight: 100 name = 'com.alipay.sofa.ark.springboot.listener.ArkApplicationStartListener', ClassUtils.forName 获取到的是从基座 ClassLoader 的类
![image.png](https://intranetproxy.alipay.com/skylark/lark/0/2023/png/149473/1695020357927-660e3462-1bd7-4ede-9955-541b63caf650.png#clientId=ufd4bb4ce-38f3-4&from=paste&height=308&id=DwdJg&originHeight=616&originWidth=1786&originalType=binary&ratio=2&rotation=0&showTitle=false&size=132500&status=done&style=none&taskId=u870534d8-591d-4685-bdef-19aeb287535&title=&width=893)
而 type 是模块启动时加载的,也就是使用模块 BizClassLoader 加载。
![image.png](https://intranetproxy.alipay.com/skylark/lark/0/2023/png/149473/1695020334793-d8be43cc-b791-4aef-bb75-b8c890cbe82c.png#clientId=ufd4bb4ce-38f3-4&from=paste&height=400&id=q2juJ&originHeight=800&originWidth=1612&originalType=binary&ratio=2&rotation=0&showTitle=false&size=165924&status=done&style=none&taskId=u52077367-d352-49fc-9d49-a6ac0cf539b&title=&width=806)
此时这里做 isAssignable 判断,则会报错。 ```xml -Cannot instantiate interface org.springframework.context.ApplicationListener : com.alipay.sofa.ark.springboot.listener.ArkApplicationStartListener +com.alipay.sofa.serverless.plugin.spring.ServerlessApplicationListener is not assignable to interface org.springframework.context.ApplicationListener ``` 所以模块框架这部分需要委托给基座加载。