I've got the following Spring service:
@Service
public class Worker {
@Autowired
private MyExecutorService executor;
@Autowired
private IRun run;
private Integer startingPoint;
// Remainder omitted
}
Now I want to load the startingPoint
through a .properties
file.
Is it possible to wire a Spring service through annotations and an xml context at the same time?
Maybe something like this:
<bean id="worker" class="Worker">
<property name="startingPoint">
<value>${startingPoint}</value>
</property>
</bean>
startingPoint
is wired through the xml context file, everything else gets auto-wired.