Mac under IntelliJ idea New Javaweb Project

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.