1. Configure project code
2. Configure and run Kanban Services
IDEA opens and configures the Services window
. It has been configured here. If not, click +, click Run Configuration Type, select what you need, and click.
Configure spring and docker kanban (configure according to the above method, click +, click Run Configuration Type, and select the required Spring and Docker kanban respectively):
3. Configure server SSH connection
Go to Settings -> Tools -> SSH Configurations Click the plus sign to create an SSH connection configuration
Fill in the server IP username password port number Click Test Connection to test the connection
Use the Terminal tool to click the arrow to find the SSH connection configuration created above, select it to enter the SSH connection interface where you can perform command operations on the server
4. Configure server FTP connection
Go to Settings -> Build-> Deployment Click the plus sign and select SFTP to create FTP connection configuration
Select the previously created SSH configuration and click Test Connection to test the connection
Find Tools -> Deployment -> Browse Remote Host on the toolbar above IDEA to open the remote interface
Click the arrow to find the SFTP connection configuration we configured above to connect to the file directory of the server
5. Configure docker connection
Can operate remote docker and build and upload docker image (replace the original maven docker plug-in)
tcp connection needs to open server port 2375
ssh needs to use the SSH connection configuration above,
it is recommended to use SSH connection
After the configuration is complete, there will be an additional Docker icon in the running window. Double-click to connect to the remote docker. You can view the real-time logs of the container to start, restart, stop, etc.
6. The structure is displayed in IDEA
Shortcut Alt+7 or click View-Tool Windows-Structure
7. Project Structure is displayed in IDEA
Shortcut keysCtrl+Alt+Shift+S
8, IDEA middle deployment configured default deployment server
Tools—Deployment—configuration
If the server has not been set as the default deployment server , click “Check” and it will display “Use as Default”, that is, set it as the default deployment server:
If the server has been set as the default deployment server , click “ "Check" will display "Stop Using as Default", that is, cancel as the default deployment server: You
can also set the configured default deployment server in Settings—Build, Exection, Deployment—Deployment:
Press Ctrl + Alt + S to call up the Settings interface:
9. Display the Navigation Bar at the bottom to the top
Because the Status Bar at the bottom has other information bars to display, the space that can be displayed is limited, and sometimes the directory is deep and the display is incomplete:
10. Perform global configuration
When we clone a project or create a new project, we always need to configure Each project sets the encoding, maven version, Gitee and GitHub settings separately, which is very troublesome. After the global configuration, it does not need to be configured separately . Enter relevant keywords in Settings to retrieve configurations, such as encoding, maven, git, etc., which is consistent with the separate configuration process.
Global configuration encoding:
Global configuration maven:
Global configuration Git:
11. To be added
2023-7-12 00:24:19