I'm developing a J2EE project with NetBeans. When I created the project I didn't check the "Enable Contexts and Dependency Injection" option.
Is it possibile to change the option after the project creation? Where?
Thank you!
Steps -
New
and then select Others
.Categories
list, select Contexts and Dependency Injection
.File Types
list select beans.xml (CDI Configuration File)
That's it. It creates the beans.xml file and it's enough to tell Java EE-compliant server that your project is a module containing CDI beans.
I found this -
The 'Enable Contexts and Dependency Injection' option, when selected, generates a beans.xml file in the project's WEB-INF folder when the project template is created. The beans.xml file is used by CDI to instruct the Java EE-compliant server that the project is a module containing CDI beans.
from here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With