I have the following Spring service:
@Service
public class Worker {
@Autowired
private MyExecutorService executor;
@Autowired
private IRun run;
private Integer startingPoint;
}
Now I want to upload the file startingPointvia .properties.
Is it possible to connect Spring service through annotations and xml context at the same time?
Maybe something like this:
<bean id="worker" class="Worker">
<property name="startingPoint">
<value>${startingPoint}</value>
</property>
</bean>
startingPoint It is connected via the xml context file, everything else becomes automatically connected.
user321068
source
share