INFO:在类路径(jre 1.8)上未检测到Spring WebApplicationInitializer类型 [英] INFO: No Spring WebApplicationInitializer types detected on classpath (jre 1.8)

查看:103
本文介绍了INFO:在类路径(jre 1.8)上未检测到Spring WebApplicationInitializer类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从腻子中收到了此错误消息:

I got this error message from putty:

错误:在类路径上未检测到Spring WebApplicationInitializer类型.

Error: No Spring WebApplicationInitializer types detected on classpath.

当我使用Eclipse和Maven部署WAR文件时.现在,我正在使用jre 1.8和tomcat版本7.我检查了编译器,其版本为1.8.这个问题有什么解决办法吗?我还自动启用了选项构建.

When I deploy WAR file using eclipse and maven. Right now I'm using jre 1.8 and tomcat version 7. I checked compiler and its version is 1.8. Is there any solution for this problem? I also enabled the option build automatically.

这些是我从腻子得到的错误消息

These are the error messages I got from putty

2017年1月17日17:50:03.587信息[main] org.apache.coyote.AbstractProtocol.init初始化ProtocolHandler ["http-nio-9485"]

17-Jan-2017 17:50:03.587 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-9485"]

2017年1月17日17:50:11.982信息[ruthhere.cafe24.com-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars至少扫描了一个JAR来查找TLD,但其中没有TLD.为该记录器启用调试日志记录,以获取已扫描的JAR的完整列表,但未在其中找到TLD.在扫描过程中跳过不需要的JAR可以缩短启动时间和JSP编译时间.

17-Jan-2017 17:50:11.982 INFO [ruthhere.cafe24.com-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

2017年1月17日17:50:11.989信息[ruthhere.cafe24.com-startStop-1] org.apache.catalina.core.ApplicationContext.log在类路径上未检测到Spring WebApplicationInitializer类型

17-Jan-2017 17:50:11.989 INFO [ruthhere.cafe24.com-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath

推荐答案

我刚刚解决了这个问题.我一直收到此错误的原因是因为我拥有的Java版本和eclipse项目属性中的Java版本不匹配. 首先,我检查了我拥有的Java版本.比打开pom.xml并更改Java版本,使其可以与Java版本匹配.

I solved this problem just right now. The reason why I kept getting this error is because the java version I have and java version in the eclipse project property were mismatched. First, I checked the java version that I have. than opened pom.xml and changed java version so that it can match with the java version.

<java-version>1.7</java-version>

此外,我检查了>属性>项目构面,并更改了Java版本.

Also, I checked window >properties > project facets and changed java version too.

这篇关于INFO:在类路径(jre 1.8)上未检测到Spring WebApplicationInitializer类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆