The microservice starts in configuration mode in the service window
1.idea version
首先我使用的版本是**2021.3.3**,service窗口中可以以配置方式启动微服务,一般是配置不同端口号启动。
2. Bring up the Service window
Open View→Tool Windows→Service, as shown below.
In the initial situation without starting the server, the effect is as shown in the figure:
3. Configure the project startup type of the Service window. Microservices are generally of the Springboot type. So here is a choice.
Click the last + sign and click Run Configuration Type.
After finding it, the effect picture is as follows:
every time you restart the project, just right click and click return