CDI: beans.xml, where do I put you?

前端 未结 3 1249
萌比男神i
萌比男神i 2020-11-28 06:50

I am using Weld as CDI implementation. My integration test, that tries to assemble object graph instantiating Weld container works well, when I have empty b

3条回答
  •  情歌与酒
    2020-11-28 07:24

    http://www.javamonamour.org/2017/11/cdi-in-java-se-8.html here you can see where I have put it with success, that is under src/META-INF . The post contains a full working example of CDI in Java SE.

提交回复
热议问题