不需要再application.properties中写明端口:server.port=9000,因为有时候需要在一个项目中启动两个不同的端口。因此我们在Edit Configuration中复制一个,然后修改Program arguments即可
springboot指定端口

相关文章: