软件编程
位置:首页>> 软件编程>> java编程>> idea中同一SpringBoot项目多端口启动

idea中同一SpringBoot项目多端口启动

作者:yfs1024  发布时间:2023-05-09 06:39:27 

标签:idea,SpringBoot,多端口启动

本文主要介绍了idea中同一SpringBoot项目多端口启动,具体如下:

现在已经有一个在跑着使用的默认端口 8080

idea中同一SpringBoot项目多端口启动

idea中同一SpringBoot项目多端口启动

选中1,点击2.这个时候就有两个skyApplication

idea中同一SpringBoot项目多端口启动

idea中同一SpringBoot项目多端口启动

idea中同一SpringBoot项目多端口启动

-Dserver.port=9999

比如这里配置的是9999, 这样配置主要用于测试NGINX

选中运行起来

idea中同一SpringBoot项目多端口启动

来源:https://blog.csdn.net/qq_47910339/article/details/130020193

0
投稿

猜你喜欢

手机版 软件编程 asp之家 www.aspxhome.com