Guice找不到合适的构造函数:@Inject类Patient(v1:C1){} [英] Guice cannot find a suitable constructor: @Inject class Patient(v1:C1) {}
本文介绍了Guice找不到合适的构造函数:@Inject类Patient(v1:C1){}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使其起作用?
我知道简短的问题将不被感激.但是这次我没有什么可补充的.
How to make it work?
I know that short questions aren't appreciated. But I have nothing to add this time.
更新1:作为解决方法,我已经将构造函数用作辅助函数,但是我不喜欢这样做,因为它增加了很多负担.
update 1: As workaround I've made the constructor auxiliary, but I don't like this as it adds quite a lot of burden.
推荐答案
class Patient @Inject() (v1:C1) {}
只需在这里找到它: http://www.scala-lang.org/node/3388
这篇关于Guice找不到合适的构造函数:@Inject类Patient(v1:C1){}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文