Answers for "spring boot trim property whitespace"

0

spring boot trim property whitespace

@Bean
  public static PropertySourcesPlaceholderConfigurer createPropertyConfigurer()
  {
    PropertySourcesPlaceholderConfigurer propertyConfigurer = new PropertySourcesPlaceholderConfigurer();
    propertyConfigurer.setTrimValues(true);
    return propertyConfigurer;
  }
Posted by: Guest on April-02-2021

Browse Popular Code Answers by Language