看完Mikhail Kholodkov的帖子(谢谢!)之后,
解决方案是将以下注释添加到using服务执行点:
@PropertySources({ @PropertySource("classpath:jwtConfig.properties"), @PropertySource("classpath:app.properties")})public class OtherServiceApplication {public static void main(String[] args) { SpringApplication.run(OtherServiceApplication.class, args); }}


