-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【优化建议】CommonService的getBean方法可以优化一下 #26
Comments
如果有多个类,包不同,类名相同,那么如何解决这个冲突呢? |
跟spring里一样,当有相同的名称启动就会报错 |
老板,这个写的挺棒的,啥时候再更新呀~ |
可惜了,现在从事的工作很少用 Java 了,但是 grpc 会用,哈哈,得靠你们贡献了 |
我也是在服务端getbean这个地方卡住,无法通过接口的class找到对应的实现类实例(在spring容器中),跟踪了一下代码,是AbstractBeanFactory中 typeToMatch.isInstance(beanInstance)方法返回false导致,但是不知道为什么?都是按照样例代码配置的。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
现在只能按照class查找,可以改成按照类名查找。
因为我在尝试使用其他语言调用时,调用需要写全路径会比较麻烦
比如:
The text was updated successfully, but these errors were encountered: