在DispatcherServlet中找不到具有URI的HTTP请求的映射

时间:2013-11-25 01:52:58

标签: java spring rest tomcat gradlew

我对其中一个弹簧指南有疑问:

使用Spring设计和实现RESTful Web服务 我按照指南中描述的所有步骤操作,但是当我尝试使用gradlew执行服务时收到以下错误,因为它在下面提到: http://spring.io/guides/tutorials/rest/3/

"C:\REST-Spring\workspace3\tut-rest-6-complete>gradlew tomcatRunWar
The ConfigurationContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the
create() method instead.
The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create()
method instead.
:compileJava UP-TO-DATE
rocessResources UP-TO-DATE
:classes UP-TO-DATE
:war UP-TO-DATE
:tomcatRunWar
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/i827490/.gradle/wrapper/dists/gradle-1.6-bin/72srdo3a5eb3bic159kar72vok/grad
le-1.6/lib/logback-classic-1.0.9.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/REST-Spring/workspace3/tut-rest-6-complete/build/tmp/tomcatRunWar/work/Tomcat/loca
lhost/_/WEB-INF/lib/slf4j-jdk14-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
Started Tomcat Server
The Server is running at localhost
***No mapping found for HTTP request with URI [/] in DispatcherServlet with name 'webservice'***
> Building > :tomcatRunWar"

如何解决此问题?

0 个答案:

没有答案
相关问题