I would like to pass string value "hello" from spring bean to java method
Below is my bean configuration:
<bean id="myProcessName" class="java.lang.String" >
<constructor-arg value="hello"/>
</bean>
Below java class with the method
import javax.annotation.Resource;
public class Process {
private String procName;
@Resource(name = "myProcessName")
public void setMyProcessName(String procName) {
this.procName = procName;
}
}