Unsatisfied dependencies for type […] with qualifiers [@Default] at injection point (using @Stateful EJB with CDI)

前端 未结 5 842
被撕碎了的回忆
被撕碎了的回忆 2021-01-03 23:56

I have the following code to manage two kinds of repositories. Both repository classes inherit an interface to allow reinitialization of their resources.

pub         


        
5条回答
  •  执笔经年
    2021-01-04 00:24

    Maybe you should add non-parameterized Constructor on the bean class. I read on Jboss Documentation that says: concrete Java class that has a constructor with no parameters (or a constructor designated with the annotation @Inject) is a bean.

提交回复
热议问题