Q: inject @Value into a bean from a imported 3rd jar I have a bean(TokenJWTService) from an imported jar(common.jar)
 package com.xx.yy;
 public class TokenJWTService {

     @Value("${user.service.url}")
     private String userServiceUrl;

     //other methods
}

Now I want to inject a url into above bean's field userServiceUrl using @Value annotation
I tried to add package com.xx.yy to <context:component-scan base-package="com.xx.yy " /> but the value is still not injected.
I also tried to <bean id="tokenJWTService" class="com.xx.yy.services.TokenJWTService" p:userServiceUrl="${user.service.url}"/> but injection failed too.
How can I inject a value into that bean, which leaves in an imported jar?

A: Problem solved... thanks zapl.. your comments remind me to invesitgate further in a right drieciton..
I put <bean id... part in a wrong xml config file.
In web.xml, i registerd the bean in spring-controller.xml
<servlet>
    <servlet-name>appServlet</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <init-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:spring-controller.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>

While it should be in sso-config.xml, 
<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
        classpath:propertyFileConfigurer.xml
        classpath:sso-config.xml
    </param-value>
</context-param>

