SpringBoot修改默認8080端口

1.設置VM參數 2.application.properties中添加配置 server.port=目標端口 3.Application主類實現EmbeddedServletContainerCustomizer接口,重寫 4.啓動應用添加參數 nohup java -jar xxxxx.jar --server.port=目標端口 &
相關文章
相關標籤/搜索