java - Spring Boot + Tomcat ignoring server.port property? -
i'm trying spring boot application , running small configuration changes, can't seem port listen correctly. seems server.xml tomcat instance loads overwrites application.properties file specifies.
application.properties:
logging.level.app = trace logging.file = /tmp/my-server.log server.port = 8081
when deploy /usr/local/tomcat/webapps, can access server, on port 8080. seems ignore server.port property. believe server picking properties file correctly since logging correctly goes /tmp/my-server.log
the end goal have server listen on port of choice when running in amazon elastic beanstalk. can update ports on load balancer, if server listen on it's pre-configured port, won't matter.
thanks ahead of time help!
osx yosemite, tomcat 8.0.24, spring boot v1.2.4
spring boot properties server.port
take effect if use embedded tomcat. is, if start application executing main
method springapplication.run()
in or creating executable jar , starting java -jar
.
when deploy application war archive stand-alone tomcat, have configure tomcat in traditional way editing server.xml
, possibly other configuration files.
Comments
Post a Comment