IntelliJ idea can be said to be a very useful tool that I use to develop Java. It's much more useful than eclipse. Who knows who, of course, is only the development of tools, with nothing is irrelevant. Daniel is programmed with Notepad.
This article helps the novice to create a Javaweb project, although simple, but at the beginning, he also lost a lot of pits.
Idea activation can take a long time to find a registration code on the Internet. Follow up on how to use Docker to load images to permanently activate all of the company's products, Phpstrom, etc.
Please download Tomcat and JAVAJDK first. and configure the Java environment variables (not configured please Baidu, very simple), although the Mac comes with the Java environment, but always feel bad, so you download. Tomcat unzip it on the desktop just fine.
Let's take a look at the Java version: 1.8
appledemac-mini:~ apple$ java-version
Java Version "1.8.0_131"
Java (TM) SE Runtime Environment (build 1.8.0_131-B11)
Java HotSpot (TM) 64-bit Server VM (build 25.131-b11, Mixed mode)
appledemac-mini:~ apple$
1. New Project
2. Select Type-select simple on the line and click Next
3. Fill in the project name and storage path and Finishi-the project will open automatically
4. Configure the Tomcat point triangle selection edit-configuration
This to choose Local,remote is the remote debugging used, (the machine to put the source code, the service is compiled good project, the machine hit a breakpoint, access to the server can be remote debugging, should also encounter it, I met once)
Click Configuer
Click the plus sign to create a new tomcat-then select the Tomcat directory, and my is on the desktop
Similarly, this place is configured to download the Java SDK, select the SDK decompression path can be
The interface can also be configured with the port number, which browser to start with, and configure the hot deployment.
There's an error-click Fix to fix it automatically
Ffix to this interface after the transfer.
Click OK to do it.
Finally click Debug (small Bug) or run (triangle) can be, I prefer to debug
Run successfully
Mac under IntelliJ idea New Javaweb Project