Spring启动数组在Docker / Marathon上的环境variables

我的应用程序的数组环境variables的formstableName[0]=tableName ... property.one.two.tableName[x]=tableNameX

在本地运行时,当我将属性放在application.properties ,command-line args或环境variables中时,一切正常。 但是,一旦我尝试部署到马拉松,数组variables不再工作。 我试图在马拉松json数组中的env属性中传递它们。 我试过了:

 "env": { "property.one.two.tableName[0]":"tableName", .... } 

 "env": { "property.one.two.tableName": ["tableName", ... ] ... } 

 "env" { "tableName": [ {"property.one.two.tableName[0]" : "tableName"} {....} ] } 

但没有任何工作。 有没有人得到这个工作?

似乎是一个spring的bug。 spring放松的约束不起作用。 将环境variables设置为预期variables的确切拼写即可解决问题。

在我现有的代码中,放宽绑定正在为property.one.two工作,但是对于property.one.two停止工作