my application.properties file contains
server.port=0
Which is supposed to be captured by spring boot and set it to a random port.
Instead it actually launches it on port 0, its even in the spring log as such:
01/Mar/2019 12:50:43,600- TomcatEmbeddedServletContainer: Tomcat initialized with port(s): 0 (http)
Eureka sees it as an 'up' service, and provides the link to the service (localhost:0/info
), clicking on it gives my browser 'ERR_ADDRESS_INVALID
', guessing because its not a valid port..
App is running to send heartbeats to Eureka, but why is spring not setting it a random port number?
Are there any settings that can prevent the random? if so how to unset them?
edit: any new boot apps the server.port=0 is random, its just not working for an existing spring boot application that lots of dependencies