信息: Starting service Tomcat
三月 01, 2018 4:47:13 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.47
三月 01, 2018 4:47:16 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
三月 01, 2018 4:47:16 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
到这就卡住了不动!!!
是在添加了
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
pom.xml文件中添加了以上内容就起不来,去掉就能正常启动
1
根据错误提示分析应该是缺少相应的jar包
你那些配置文件 是放在 java/路径下的?
1.缺少log4j包。2.从错误信息字面上是log4j日志输出缺少文件,可以在类似如下目录下conf中新建文件,名为log4j.properties。内容可以在网上找。建立之后,要在web.xml中查看相应的配置内容是否有错。
3.也可能是jar包版本的问题。
没有配置本地仓库吗?