1

Spring Boot application does not consider a space in prefix or suffix in the value for a key in application.properties file.

Both of the following are same for the Spring Boot:

  • app.my-key=[space]my value[space]
  • app.my-key=my value

I tried enclosing the value in single quote and double quotes as follows but it doesn't work:

  • app.my-key=' my value '
  • app.my-key=" my value "
nikhil2050
  • 27
  • 5
  • I would say that https://stackoverflow.com/questions/10783523/java-resourcebundle-leading-whitespace-in-values is a duplicate for this. – M. Deinum Feb 02 '22 at 16:48

0 Answers0