1问题Could not resolve placeholder 'api-host' in value :
2. solve the problem:
// set @Value not ignore the value of notes (no error) @Bean public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() { PropertySourcesPlaceholderConfigurer c = new PropertySourcesPlaceholderConfigurer(); c.setIgnoreUnresolvablePlaceholders(true); return c; }