SpringBoot修改默认8080端口

1.设置VM参数 2.application.properties中添加配置 server.port=目标端口 3.Application主类实现EmbeddedServletContainerCustomizer接口,重写 4.启动应用添加参数 nohup java -jar xxxxx.jar --server.port=目标端口 &
相关文章
相关标签/搜索