gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 23:30:16 25 4
gpt4 key购买 nike

我收到如下警告信息:

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>

最佳答案

请告诉我你的 Controller 代码。根路径中似乎没有映射的 Controller 方法。

请引用Map / (root URL) in Spring MVC .

关于eclipse - 警告 : No mapping found for HTTP request with URI [/PMC/] in DispatcherServlet with name 'spring-dispatcher' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31309225/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com