Моего файла диспетчер-сервлеткласс не найден: org.springframework.web.servlet.mvc.annotation. DefaultAnnotationHandlerMapping
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">
<context:component-scan base-package="com.controller"/>
<mvc:annotation-driven/>
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping
" />
<bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/>
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
после запуска приложения Я нашел ошибку в журнале серверного
class not found: "org.springframework.web.servlet.mvc.annotation. DefaultAnnotationHandlerMapping"
Кто-то сказали мне, чтобы добавить соответствующие файлы фляга, но я уже добавил org.springframework .web.servlet-3.2.2.RELEASE.jar.
и я добавил все необходимые банки.
Вы можете проверить пружинное webmvc банки Существует стартером приложение по адресу: //tech.lalitbhatt. сеть/2014/08/весна-зимуют-JQuery-плитка-web.html. Проверьте pom.xml. – lalit