Guice cannot find a suitable constructor: @Inject class Patient(v1:C1) {}

半世苍凉 提交于 2019-12-12 20:50:42

问题


How to make it work?
I know that short questions aren't appreciated. But I have nothing to add this time.

update 1: As workaround I've made the constructor auxiliary, but I don't like this as it adds quite a lot of burden.


回答1:


class Patient @Inject() (v1:C1) {}

Just found it here: http://www.scala-lang.org/node/3388



来源:https://stackoverflow.com/questions/13434884/guice-cannot-find-a-suitable-constructor-inject-class-patientv1c1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!