Intellij Idea Building a Java Web project (problem summary)

Source: Internet
Author: User

The two days have been a whim to download IntelliJ idea, ready to experience the legend of the very powerful IDE. Tool download not much to say, a search on the Internet, Bo Master is directly from the IntelliJ official website Download the latest full version, unfortunately, can only use 30 days, but also almost, nonsense will not say more, into the topic.

Using IntelliJ idea development is generally used to build projects with Maven, first from the MAVEN official website now the latest version, then the configuration maven to the system environment variables, the specific operation is not detailed, ask a degree.

Configure Maven in Intelli idea, basic steps: Open Idea, Menu file->setting open the Properties Configuration window, then set MAVEN, and finally, Apply->ok end configuration.

The project in idea is different from Eclipse, and project in idea is equivalent to project Workspace,moudle in Eclipse. The process of creating a MAVEN project is much the same, the specific steps Bo Master is a step-by-step detail, after all, now the network era of information sharing is very good, we can refer to http://www.cnblogs.com/jifeng/p/4658765.html, which is full of detailed written.

The next step is to summarize the idea of the blogger.

The goal is to build a SPRINGMVC demo, experienced in the creation of projects, the introduction of dependencies, writing code, configuration projects, the final release of the project process is really twists ah!

Question 1.

caused By:java.lang.IncompatibleClassChangeError:class Org.springframework.core.type.classreading.ClassMetadataReadingVisitor has interface Org.springframework.asm.ClassVisitor as Super class.

I look at selves here ah, look at the discovery and the ASM package, check the dependency configuration, found that the POM configuration of the ASM Jar is 3.1.4, the other package is 3.2.4. It may be a version issue, but ASM does not have a 3.2.4 version, and by looking at the data, spring-asm-3.1.4 Classvisitor is an abstract interface. The Classvisitor in spring-core-3.2.4 is an abstract class, so conflicts arise.

The solution for the blogger is to remove the ASM package directly, because Core 3.2.4 has been re-packaged in ASM.

Question 2.

java.lang.ClassNotFoundException:org.apache.jsp.login_jsp

This exception is very obvious, JSP did not compile successfully, but after detailed inspection found that JSP no problem, and then JSP page without any logic, the page will not make any errors, and then confirm that the code will not appear errors, start from the project configuration, first check the configuration of Java EE aspects, Check that the Web. XML Discovery is 2.x:

Suddenly thought in the Pom before the configuration of Servlet-api and Jsp-api, and then decisively remove the dependency configuration in the Pom, run exception is not.

On this issue, it should be that the servlet version set in Web. XML is conflicting with the introduced servlet-api.3.1, which is also possible if the 3.0 issue in Web. XML is resolved.

The above is the two small problems encountered in the record, in addition to the idea of the editor, bloggers feel if familiar with the use is very convenient, but just turned from eclipse may need to adapt to a period of time, or there is a certain cost of learning.

Finally say the project when the window, in eclipse there is only one console,idea inside there are three,, 1 is the server startup situation, 2 is the project operation, 3 is the operation of Tomcat. After the project started abnormally error, only the 1 window display basic exception hint, the specific exception information is thrown in the 2 window display. I hope this will help the students who use it for the first time.

Intellij Idea Building a Java Web project (problem summary)

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.