In this example you will see how inject the arguments into your bean according to the constructor argument index.
ConstructorInjection.java
package net.roseindia;
|
ConstructorInjectionTest.java
package net.roseindia;
|
context.xml
<?xml version="1.0" encoding="UTF-8"?>
|
When you run this application it display output as shown below:
Aakash Pandey
1001
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.