Idea Building a Java WEB development environment

Source: Internet
Author: User
Tags java web log4j

This article is a document explaining how to build javaweb under the current popular INTELLJ idea,

If there is no detailed place to write, I hope you leave your valuable meaning.

Tips:

Problems encountered, please read the article patiently, at the end of the article there is a solution

1. The red wavy line issue after maven dependency package download

2. Project added dependency in Pom.xml, post-deployment class not found issue

3. Chinese in the console output garbled problem

STEP1 Open the installed Ieda software

STEP2 choose to export items from a git repository, which is equivalent to cloning a copy of a code from a git remote repository

STEP3 wait for the warehouse clone code, where the wait time may be slightly longer than 3-10 minutes (depending on the project size)

STEP4 because the project uses MAVEN to build, let the idea parse the project's pom.xml to download the required dependencies

After Step5 git clone is complete, idea automatically opens the project for US

Attention:

In the previous step, because the project is MAVEN-based, MAVEN will run in the background to download the required jar for us

There may be a long wait for the jar to download because of network reasons.

STEP6 Open the idea's Maven plugin button and check that the dependent jar is fully/correctly downloaded and imported in

Here you can see that the dependencies are correct and imported in

STEP7 Add spring Support, locate the spring-configured directory as shown:

STEP8 Configuring Tomcat

STEP9 adding Web support to your project

STEP10 for Tomcat to add specific applications to deploy

STEP11 Debug Deploy the app and test it

Finished, eat chicken at night!!!

========= Building Questions and Answers ===========

There may be small partners, even if they follow such a process to operate or there will be problems

The following is a common problem, that is, the article begins with a few questions to give their own solution, pro-Test effective:

1. The red wavy line issue after maven dependency package download

http://blog.csdn.net/u010003835/article/details/78480626

2. Project added dependency in Pom.xml, post-deployment class not found issue

http://blog.csdn.net/u010003835/article/details/78481160

3. Chinese in the console output garbled problem

http://blog.csdn.net/u010003835/article/details/78486545

======== Reference Article =========

Deploy to Tomcat

1. intellij-idea-14-Import Maven-web Project and publish to tomcat/

http://blog.zhangjikai.com/2015/12/26/%E3%80%90%E8%BD%AF%E4%BB%B6%E3%80%91Intellij-IDEA-14-%E5%AF%BC%E5%85% a5maven-web%e9%a1%b9%e7%9b%ae%e5%b9%b6%e5%8f%91%e5%b8%83%e5%88%b0tomcat/

2. Idea deployed to remote Tomcat

http://blog.csdn.net/tianjun2012/article/details/52795202

3.IntelliJ idea 15 deployment of Tomcat and creating a simple Web project

Http://www.cnblogs.com/wql025/p/5215193.html

How do I deploy a project to Tomcat in 4.Intellij idea?

http://www.jianshu.com/p/0aca0d876319

5.IntelliJ 2016.2 idea in Java WEB project development Configuration

1190000007088964

6IntelliJ User Guide--in-depth understanding of IntelliJ's Web deployment logic

http://white-crucifix.iteye.com/blog/2070830

Issues encountered in deploying to Tomcat

1. Address IntelliJ idea Tomcat startup Project error: Java.lang.classnotfoundexception:o Rg.springframework.web.context.ContextLoaderListener

Http://www.jianshu.com/p/18d068f47b09

2.IDEA Tomcat garbled

Http://www.cnblogs.com/blog411032/p/6232774.html

3.IDEA Tomcat Hot deployment method and garbled problem solving

Http://www.cnblogs.com/shaohz2014/p/6430305.html

4. Solve IntelliJ idea Console garbled problem [contains log4j log of program runtime and tomcat log garbled

Http://www.mamicode.com/info-detail-1781372.html

This article is a document explaining how to build javaweb under the current popular INTELLJ idea,

If there is no detailed place to write, I hope you leave your valuable meaning.

Tips:

Problems encountered, please read the article patiently, at the end of the article there is a solution

1. The red wavy line issue after maven dependency package download

2. Project added dependency in Pom.xml, post-deployment class not found issue

3. Chinese in the console output garbled problem

STEP1 Open the installed Ieda software

STEP2 choose to export items from a git repository, which is equivalent to cloning a copy of a code from a git remote repository

STEP3 wait for the warehouse clone code, where the wait time may be slightly longer than 3-10 minutes (depending on the project size)

STEP4 because the project uses MAVEN to build, let the idea parse the project's pom.xml to download the required dependencies

After Step5 git clone is complete, idea automatically opens the project for US

Attention:

In the previous step, because the project is MAVEN-based, MAVEN will run in the background to download the required jar for us

There may be a long wait for the jar to download because of network reasons.

STEP6 Open the idea's Maven plugin button and check that the dependent jar is fully/correctly downloaded and imported in

Here you can see that the dependencies are correct and imported in

STEP7 Add spring Support, locate the spring-configured directory as shown:

STEP8 Configuring Tomcat

STEP9 adding Web support to your project

STEP10 for Tomcat to add specific applications to deploy

STEP11 Debug Deploy the app and test it

Finished, eat chicken at night!!!

========= Building Questions and Answers ===========

There may be small partners, even if they follow such a process to operate or there will be problems

The following is a common problem, that is, the article begins with a few questions to give their own solution, pro-Test effective:

1. The red wavy line issue after maven dependency package download

http://blog.csdn.net/u010003835/article/details/78480626

2. Project added dependency in Pom.xml, post-deployment class not found issue

http://blog.csdn.net/u010003835/article/details/78481160

3. Chinese in the console output garbled problem

http://blog.csdn.net/u010003835/article/details/78486545

======== Reference Article =========

Deploy to Tomcat

1. intellij-idea-14-Import Maven-web Project and publish to tomcat/

http://blog.zhangjikai.com/2015/12/26/%E3%80%90%E8%BD%AF%E4%BB%B6%E3%80%91Intellij-IDEA-14-%E5%AF%BC%E5%85% a5maven-web%e9%a1%b9%e7%9b%ae%e5%b9%b6%e5%8f%91%e5%b8%83%e5%88%b0tomcat/

2. Idea deployed to remote Tomcat

http://blog.csdn.net/tianjun2012/article/details/52795202

3.IntelliJ idea 15 deployment of Tomcat and creating a simple Web project

Http://www.cnblogs.com/wql025/p/5215193.html

How do I deploy a project to Tomcat in 4.Intellij idea?

http://www.jianshu.com/p/0aca0d876319

5.IntelliJ 2016.2 idea in Java WEB project development Configuration

1190000007088964

6IntelliJ User Guide--in-depth understanding of IntelliJ's Web deployment logic

http://white-crucifix.iteye.com/blog/2070830

Issues encountered in deploying to Tomcat

1. Address IntelliJ idea Tomcat startup Project error: Java.lang.classnotfoundexception:o Rg.springframework.web.context.ContextLoaderListener

Http://www.jianshu.com/p/18d068f47b09

2.IDEA Tomcat garbled

Http://www.cnblogs.com/blog411032/p/6232774.html

3.IDEA Tomcat Hot deployment method and garbled problem solving

Http://www.cnblogs.com/shaohz2014/p/6430305.html

4. Solve IntelliJ idea Console garbled problem [contains log4j log of program runtime and tomcat log garbled

Http://www.mamicode.com/info-detail-1781372.html

Idea Building a Java WEB development environment

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.