spring boot @Value Could not resolve placeholder

时间:2021-03-06 01:54:53
@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 
星朝 
阅读(...) 
评论(...) 
编辑 
收藏