spring boot @Value Could not resolve placeholder

@Configuration
public class PropertySourcePlaceholderConfig {
    @Bean
    public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer(){
        PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer();
        configurer.setIgnoreUnresolvablePlaceholders(true);
        return configurer;
    }

}

      </div>
    </div>
posted @ 2019-04-25 10:28  星朝  阅读(2112)  评论(0)    收藏  举报