package com.jgreubel

import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication

@SpringBootApplication
open class TreelineApplication

fun main(args: Array<String>) {
    SpringApplication.run(TreelineApplication::class.java, *args)
}

package com.jgreubel

import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication

@SpringBootApplication
open class TreelineApplication

fun main(args: Array<String>) {
    val app = SpringApplication.run(TreelineApplication::class.java, *args)
    println("local server port: " + app.environment.getProperty("local.server.port"))
    println("server port" + app.environment.getProperty("server.port"))
}

Print server port on app launch
Print server port on app launch

[#29]

Jgreub/treeline,Jgreub/treeline,Jgreub/treeline,Jgreub/treeline