Glassfish 4, simple example in CDI fails with WELD-001408 Unsatisfied dependencies

后端 未结 2 1728
庸人自扰
庸人自扰 2021-01-25 17:45

I am a very newbie in CDI. This is my FIRST example and I am trying to run it. Having searched the internet I wrote the following code: Class that I want to be injected

2条回答
  •  無奈伤痛
    2021-01-25 17:58

    At me worked with this command:

    asadmin set configs.config.server-config.cdi-service.enable-implicit-cdi=false
    

    So disable the enable-implicit-cdi worked for me.

提交回复
热议问题