Idea中1个springboot项目启动N份服务

使用的idea版本是

IntelliJ IDEA 2022.2.3 (Ultimate Edition)

Build #IU-222.4345.14, built on October 5, 2022

 

01

 

 

02

 

 从服务ImApplication18081

复制出服务ImApplication18082

03

新建 属性文件,

application-dev.properties

application-qa.properties

 

内容是设定端口号之类

 

dev的文件内容是:
server.port = 18081

qa的文件内容是:
server.port = 18082


04 设定激活的文件

 

 



 

 

05 运行的效果

 

 

 

 

 

 

posted @ 2022-12-07 18:59  杨斌_济南  阅读(116)  评论(0编辑  收藏  举报