美文网首页
spring boot @Value Could not res

spring boot @Value Could not res

作者: CaptainZ0713 | 来源:发表于2018-10-31 19:54 被阅读0次
@Configuration
public class PropertySourcePlaceholderConfig {
    @Bean
    public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer(){
        PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer();
        configurer.setIgnoreUnresolvablePlaceholders(true);
        return configurer;
    }

}

相关文章

网友评论

      本文标题:spring boot @Value Could not res

      本文链接:https://www.haomeiwen.com/subject/hkkztqtx.html