I have searched High and low and still I am unable to find a simple answer to this very annoying problem,
I have followed this great guide: JWT with multi service ap
After looking in Mikhail Kholodkov post(Thanks!),
The solution is to add the following annotation to the using service Execution point:
@PropertySources({
@PropertySource("classpath:jwtConfig.properties"),
@PropertySource("classpath:app.properties")
})
public class OtherServiceApplication {
public static void main(String[] args) {
SpringApplication.run(OtherServiceApplication.class, args);
}
}