A.J
A.J

Reputation: 119

Spring boot war running on tomcat with port number specified in properties file

I want to deploy Spring boot app as a war in tomcat server. And my tomcat port is 8088. But I want to start my app on port number specified in application.yml file. Is it possible?

Like if I have declared port in yml file:

server:
    port: 8090

Upvotes: 1

Views: 2009

Answers (1)

Tom
Tom

Reputation: 3850

Unfortunately it is not possible. Your tomcat port is decided by the web server configuration (server.xml) and all the wars deployed will be served on that port.

Upvotes: 5

Related Questions