CDI : WELD-001408 Unsatisfied dependencies, how to resolve it?

前端 未结 4 1694
一生所求
一生所求 2021-01-01 13:24

I do a small test project with CDI. My application is composed of an EJB EAR and WAR, all deployed on Glassfish 4. I\'m using Hibernate 4.3.4 to access the database.

4条回答
  •  失恋的感觉
    2021-01-01 13:53

    @LocalBean means you will inject the bean and not the interface

    @Inject Service service
    

    and not

    @Inject ServiceLocal service
    

提交回复
热议问题