Spring boot 为什么';t yml配置文件属性名称支持空格

Spring boot 为什么';t yml配置文件属性名称支持空格,spring-boot,Spring Boot,定义以下属性时: student: id: 10001 name: student properties map: United States: 10004 映射键的结果是“UnitedStates”不是“United States”,为什么不支持空格?欢迎使用StackOverflow。您希望属性或属性名称之间有空格的具体原因是什么?

定义以下属性时:

student:
  id: 10001
  name: student properties
  map:
    United States: 10004

映射键的结果是“UnitedStates”不是“United States”,为什么不支持空格?

欢迎使用StackOverflow。您希望属性或属性名称之间有空格的具体原因是什么?