2015-07-09 3 views
0

я получил предупреждение сообщения следующим образом:ПРЕДУПРЕЖДЕНИЯ: Нет отображения найдено для запроса HTTP с URI [/ PMC /] в DispatcherServlet с именем «весной-диспетчером»

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

Это мое определение весны фасоли:

<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> 
+0

Это в запуске этого файла: - <бобы XMLNS = "http://www.springframework.org/schema/beans" \t \t Xmlns: контекст = "HTTP: //www.springframework .org/схема/контекст " \t \t XMLNS: XSI = "http://www.w3.org/2001/XMLSchema-instance" \t \t XSI: SchemaLocation =" http://www.springframework.org/schema/бобы \t \t \t \t \t \t \t http://www.springframework.org/schema/beans/spring-beans-2.5.xsd \t \t \t \t \t \t \t http://www.springframework.org/schema/context \t \t \t \t \t \t \t http://www.springframework.org/schema/context/spring-context.xsd "> – user3516328

ответ

0

Пожалуйста, покажите мне свой код контроллера. Кажется, что в корневом пути нет метода сопоставленного контроллера.

Обратитесь к Map/(root URL) in Spring MVC.