Spring properties (property-placeholder) autowiring

前端 未结 5 1599
天命终不由人
天命终不由人 2021-01-01 09:03

I have in my applicationContext.xml






        
5条回答
  •  清歌不尽
    2021-01-01 09:31

    Ok. Just got it. You need to add @Autowired Something like:

    @Autowired
    @Value("${clientapi.url}") 
    private StringValueResolver resolver;
    

    I'm using spring 3.0.0.RELEASE

    Cheers

提交回复
热议问题