首页 > 编程语言 > 详细

SpringMvc环境搭建遇到问题总结

时间:2015-12-30 19:00:47      阅读:336      评论:0      收藏:0      [点我收藏+]

一、配置错误

1.错误描述

1.选择项目-->运行方式-->maven  build,要求输入goals的名字,输入“SpringMvcRun”

其他名字报错如下:

 Unknown lifecycle phase "SpringMvcRun". You must specify a valid lifecycle phase or a goal in the format

2.解决方法

将SpringMvcRun修改为package,点击运行即可生成war包,不会报以上错误。

3.原因分析

 

 

二、log4j、sjf4j-log4j日志模块告警

错误信息

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.

操作:补全jar包

网上查询资料,说要日志相关的jar包还不全,要补充,我在pom.xml中配置之后如下:

<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>

仍然出现以上告警,还未解决

 

SpringMvc环境搭建遇到问题总结

原文:http://www.cnblogs.com/Ndddup/p/5089610.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!