You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the properties files are defined using <context:property-placeholder /> at parent context, the child application context (typically the web application context) could not access it.
e.g. In ServiceImpl defined in parent application context
@Value("${testString}") could refer to the property value in the properties file
In WebController, defined in child web application context
@Value("${testString}") would returns null
However, everything works fine if refer to the property using explicit bean ID
i.e. <util:properties id="someProperties" location="..." />
and @Value("#{someProperties.testString}")