Intellij IDEA Error handling ing application listener of class org. springframework. web. context. ContextLoaderListener,

Source: Internet
Author: User

Intellij IDEA Error handling ing application listener of class org. springframework. web. context. ContextLoaderListener,

 

I was going to have a deep understanding of the principles of the javax. validation Package. I found a great demo code on the Internet. However, when Intellij IDEA is started, Error logging ing application listener of class org. springframework. web. context. ContextLoaderListener is always reported.

After searching for a long time, I finally found a solution: Artifacts is not correctly configured.

Ctrl + Shift + Alt + s open the project settings window, select Artifacts, delete the original war package, and add it again. (The premise is that you have configured Facets)

For details, see:

 

IDEA knowledge:

Facets ([partition f into sits]) and Artifacts (['partition rt into f into kts]) are different:
Facets indicates the features of this module, such as Web, Spring, and Hibernate;
Artifact is a concept in maven. It indicates how a module is packaged, such as war exploded, war, jar, and ear;
A module can be deployed to the application server with Artifacts!

There are many type options When configuring Artifacts for the project. What does exploed mean:
Explode can be understood as expansion without compression. That is, the directory structure before the output objects such as war and jar are not compressed. We recommend that you use this mode during development so that the file effect can be immediately displayed after modification.
By default, the IDEA Modules and Artifacts output directory has been set up, do not need to change, when the war package will be automatically produced in the WEB-INF directory classes directory, then, put the compiled file in.

Track: http://blog.csdn.net/likaihon/article/details/44174553

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.