application.properties:
languageMap[1]= English
languageMap[2]= French
Code, just use @ConfigurationProperties and setter method(setLanguageMap) is mandatory for the Map field, otherwise you don't get values.
import java.util.Map;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController("/myclass")
@ConfigurationProperties
public class TestControllerEx {
  Map<String, String> languageMap;
  @GetMapping
  public ResponseEntity control() {
    System.out.println(getLanguageMap());
    return new ResponseEntity("success", HttpStatus.OK);
  }
  public Map<String, String> getLanguageMap() {
    return languageMap;
  }
  public void setLanguageMap(Map<String, String> languageMap) {
    this.languageMap = languageMap;
  }
}
output:
{1=English, 2=French}