Integration of Tomcat tutorials with IntelliJ IDEA Community edition
The first step:
Open Intellij IDEA -& GT; Preference -> Plugins
The second step:
Search Tomcat/Jetty in the Plugins search box, and you see the following:
Step 3:
Select the Smart Tomcat plug-in, there is a green Install button on the right side, click to install, and restart IDEA after installation.
Step 4:
On the top menu bar Run -> Edit Configurations configuration environment variable:
Step 5:
Set the path of Tomcat Server, Webapps, etc. :
Name: Project Name
Tomcat: Tomcat path
Deployment: The path of WebApps
Context Path: Context Path, this will be recognized automatically, and you generally don’t need to modify it
Server Port: Server listening Port 8080 (generally modified by yourself)
VM Options: Java Virtual Machine parameter Settings (optional)
PS: Click the + sign in the upper right corner. Select Smart Tomcat from the Templates Templates. You can also select Jetty, which can be Run/Debug online
Step 6:
To run the sample program, you’ll see the Tomcat icon in the toolbar, then the run/debug button on the right green, the stop button in red, click the Green run or Debug button to start the container, and under IDEA, the print log will appear
Step 6:
Open a browser, and then visit just set the address, http://localhost:8080/symphony
The port number 8080 is set when Tomcat Server is configured
Project Name Symphony is also set when configuring Tomcat Server. The sample interface is as follows:
Above step, you can run, in addition to this example to demonstrate the source code of the project, this open source project first AGPL protocol limits, please use within the limits of the protocol:
https://github.com/b3log/symphony
The first step:
Open Intellij IDEA -& GT; Preference -> Plugins
The second step:
Search Tomcat/Jetty in the Plugins search box, and you see the following:
Step 3:
Select the Smart Tomcat plug-in, there is a green Install button on the right side, click to install, and restart IDEA after installation.
Step 4:
On the top menu bar Run -> Edit Configurations configuration environment variable:
Step 5:
Set the path of Tomcat Server, Webapps, etc. :
Name: Project Name
Tomcat: Tomcat path
Deployment: The path of WebApps
Context Path: Context Path, this will be recognized automatically, and you generally don’t need to modify it
Server Port: Server listening Port 8080 (generally modified by yourself)
VM Options: Java Virtual Machine parameter Settings (optional)
PS: Click the + sign in the upper right corner. Select Smart Tomcat from the Templates Templates. You can also select Jetty, which can be Run/Debug online
Step 6:
To run the sample program, you’ll see the Tomcat icon in the toolbar, then the run/debug button on the right green, the stop button in red, click the Green run or Debug button to start the container, and under IDEA, the print log will appear
Step 6:
Open a browser, and then visit just set the address, http://localhost:8080/symphony
The port number 8080 is set when Tomcat Server is configured
Project Name Symphony is also set when configuring Tomcat Server. The sample interface is as follows:
Above step, you can run, in addition to this example to demonstrate the source code of the project, this open source project first AGPL protocol limits, please use within the limits of the protocol:
https://github.com/b3log/symphony
Read More:
- Idea community version starts Tomcat to report error running ‘XXXXXX’: java.lang.NullPointerException
- IntelliJ idea solves Tomcat error: error listener start
- IntelliJ idea error: package not found or symbol not found
- [Solved] IntelliJ IDEA Compile Groovy Error: GroovyRuntimeException: This script or class could not be run.
- When IntelliJ idea is programmed, 1. Black thick line or black cursor appears; 2. The solution of carriage return unable to wrap. (practical recommendation method 2)
- IntelliJ idea debugging Java 8 stream
- How can IntelliJ idea completely delete a project
- Ubuntu 20.04: How to create shortcut startup mode in IntelliJ idea
- [error] error handling of IntelliJ idea
- IntelliJ idea / eclipse automatically generate author annotation signature
- Git uploads local IntelliJ idea project to GitHub
- The solution of notes floating red error in IntelliJ idea
- IDEA报Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA
- The process of solving Intellij IDEA can’t load jvm DLL error at a time
- Upgrade to IntelliJ idea 2021.2 and start the project with an error
- Perfect solution for IntelliJ idea error “CreateProcess error = 2, system cannot find the specified file”
- IntelliJ idea sets the default working directory
- Port out of range: – 1 for Tomcat startup in idea
- MacOS: How to Fix Intellij-IDEA main menu disappears Bug