package com.msgilligan.peerlist.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableAutoConfiguration
@ComponentScan(basePackages="com.msgilligan.peerlist")
public class Application {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(Application.class);
        app.setShowBanner(false);
        ApplicationContext ctx = app.run();
    }

    @Bean
    public ServerProperties myServerProperties() {
        ServerProperties p = new ServerProperties();
        String portStr = System.getProperty("app.port");  // CloudBees Environment Variable for local port
        int port = (portStr != null) ? Integer.parseInt(portStr) : 8080;
        p.setPort(port);
        return p;
    }
}

@@ -783,351 +783,7 @@
    %7D
-%0A%0A    @Bean%0A    public ServerProperties myServerProperties() %7B%0A        ServerProperties p = new ServerProperties();%0A        String portStr = System.getProperty(%22app.port%22);  // CloudBees Environment Variable for local port%0A        int port = (portStr != null) ? Integer.parseInt(portStr) : 8080;%0A        p.setPort(port);%0A        return p;%0A    %7D
 %0A%7D%0A

Remove CloudBees port setting method