【问题标题】:WARNING: No mapping found for HTTP request with URI [/PMC/] in DispatcherServlet with name 'spring-dispatcher'警告:在名称为“spring-dispatcher”的 DispatcherServlet 中找不到具有 URI [/PMC/] 的 HTTP 请求的映射
【发布时间】:2015-07-09 15:48:22
【问题描述】:

我收到如下警告信息:

WARNING: No mapping found for HTTP request with URI [/PMC/] in DispatcherServlet with name 'spring-dispatcher'

这是我的 spring bean 定义:

<beans xmlns="springframework.org/schema/beans"; xmlns:context="springframework.org/schema/context"; xmlns:xsi="w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="springframework.org/schema/beans springframework.org/schema/beans/spring-beans-2.5.xsd springframework.org/schema/context springframework.org/schema/context/spring-context.xsd">
    <context:component-scan base-package="com.PMC.hellocontroller" />

    <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver" >

        <property name="prefix">
            <value>/WEB-INF/</value>
        </property>

        <property name="suffix">
            <value>.jsp</value>
        </property>
    </bean>
</beans>

【问题讨论】:

标签: eclipse spring tomcat


【解决方案1】:

请给我看你的控制器代码。 好像根路径没有映射控制器方法。

请参考Map / (root URL) in Spring MVC

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-03-19
    • 2015-08-04
    • 1970-01-01
    • 1970-01-01
    • 2016-10-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多