Intellij idea Configuring and publishing the Tomcat project

Source: Internet
Author: User

As a rookie, I still want to improve myself. But now that it's a rookie, it's easy to break the wings halfway.

From just heard IntelliJ idea (hereinafter referred to as IDEA) to now, it should be more than one months, my computer installed three or four times (just changed a computer), each time is configured Java development environment

Idea as long as the configuration of Java can be used (just changed linux,windows need to install, install package, self-Baidu website download)

Just started to contact, but the configuration of Jdk,tomcat,maven is also relatively easy

The first thing was to get familiar with the project directly from GitHub, and then to bring in the Learning project, which was to learn, to learn the idea, to learn programming.

Then I had a tragedy, my project was Tomcat server, and of course it worked well in eclipse

Go to idea, every time it runs successfully, but the page is 404,not found

Last week, once I gave up idea, it was really annoying, I was a slag, with the eclipse of the people to go

Delete the project path inside the hard drive, idea file.

Hey, today at home, listening to the opposite square dance song, the morning to do keyboard mapping bored to death, just look at idea

The directory and the running files are new ...

Then I found this page, before because the run was unsuccessful, found a lot of pages.

"HTTP://WWW.TUICOOL.COM/ARTICLES/AZBRNRR"

According to this page, step by step to do, finally, hehe, success ...

I think that the previous problem may have been here

1.

Click Modules, select Item "Javaweb", Switch to Paths tab, tick "Use module compile output path", and "Output path" and "T EST output path is changed to the classes directory created earlier

2.

Configure Packaging Method Artifacts: Click on the Artifacts tab, idea will automatically create a package named "Javaweb:war exploded" for the project, which means that it is packaged into a war package and is file-expandable, and the output path is the out text under the current project folder, keep the default. Also tick "Build on Make", indicating that the compile time package deployment, tick "show content of elements", indicating the display of a detailed list of content.

Intellij idea Configuring and publishing the Tomcat 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.