Summary of problems encountered in SPRINGMVC environment construction

Source: Internet
Author: User

One, configuration error

1. Error description

1. Select Project--run as-->maven build, enter goals name, enter "Springmvcrun"

Other name errors are as follows:

Unknown lifecycle Phase "Springmvcrun". Must specify a valid lifecycle phase or a goal in the format

2. Workaround

Change Springmvcrun to package, click Run to generate War packet, do not report the above error.

3. Cause analysis

Second, log4j, sjf4j-log4j log module alarm

Error message

slf4j:failed to load Class "Org.slf4j.impl.StaticLoggerBinder".
Slf4j:defaulting to No-operation (NOP) Logger implementation
Slf4j:see Http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

Action: Full JAR Package

Online query information, said to log related jar package is not complete, to add, I pom.xml in the following configuration:

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.2</version>
</dependency>

<dependency>

<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>1.7.2</version>
</dependency>

The above alarms still appear and are not resolved

Summary of problems encountered in SPRINGMVC environment construction

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.