修改spring boot启动端口

开发的时候不建议直接修改yml来设置端口,这时候,我们直接通过修改spring boot设置来搞定:

-Dserver.port=8081

这样启动起来就是8081端口了

猜你喜欢

转载自blog.csdn.net/qq_22059611/article/details/87167174