Is it possible in AutoSign only specific constructor arguments in Spring?
I defined:
<bean class="MyClass">
<constructor-arg name="name" value="object name" />
</bean>
WITH
public class MyClass{
private String name;
private MyDAO dao;
@Autowired
public MyClass(String name, MyDao dao){
}
}
Now I would like the object to MyDaobe auto-updated, and explicitly define the argument name. Is it possible?
Defining a bean using XML requires manually defining all the arguments?
source
share