一路走,一路学。面朝大海,望眼欲穿!
Spring Boot 内置 Tomcat 端口默认是8080。修改端口的方式有:
8080
application.yml
src/main/resources/application.yml
12
server: port: 8888
application.properties
src/main/resources/application.properties
1
server.port=8888
terminal
$ java -Dserver.port=8888 -jar xxxx.jar