fixed issue with port property being an integer insteaf of a string

This commit is contained in:
Martin Lippert
2017-07-06 11:39:30 +02:00
parent cecd98f7a5
commit 949a6f0f7e

View File

@@ -211,7 +211,7 @@ public class SpringBootApp {
if (env != null) {
JSONObject portsObject = env.getJSONObject("server.ports");
if (portsObject != null) {
String portValue = portsObject.getString("local.server.port");
String portValue = portsObject.get("local.server.port").toString();
return portValue;
}
}