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