Spring Boot默认情况下使用嵌入式Tomcat,但是在不使用的情况下处理方式有所不同
tomcat-maven-plugin。例如,要更改端口使用
--server.port参数:
java -jar target/gs-serving-web-content-0.1.0.jar --server.port=8181
更新 。或者把
server.port=8181进
application.properties(或
application.yml)。

Spring Boot默认情况下使用嵌入式Tomcat,但是在不使用的情况下处理方式有所不同
tomcat-maven-plugin。例如,要更改端口使用
--server.port参数:
java -jar target/gs-serving-web-content-0.1.0.jar --server.port=8181
更新 。或者把
server.port=8181进
application.properties(或
application.yml)。