In this example you will see how to inject the arguments into your bean by matching the constructor arguments type.
ConstructorInjection.java
package net.roseindia;
|
ConstructorInjectionTest.java
package net.roseindia;
|
<?xml version="1.0" encoding="UTF-8"?>
|
When you run this application it display output as shown below:
Rakesh Pandey
101