私はSpringMVCフレームワークに不慣れで、学習しようとしているので、例外がスローされます。原因は何でしょうか?
dispatcher-servlet.xml
ファイルにエラーがあるようです。
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<annotation-driven />
<context:component-scan base-package="kz.controller" />
<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
<property name="prefix" value="/WEB-INF/jsp/"/>
<property name="suffix" value=".jsp"/>
</bean>
</beans:beans>
私のコントローラークラスはアノテーション駆動型ですが、次のエラーがスローされます:
HTTPステータス
Servlet.init()
500-サーブレットディスパッチャが例外をスローした場合タイプ例外レポート
Servlet.init()
サーブレットディスパッチャへのメッセージが例外をスローしました説明サーバーで内部エラーが発生したため、サーバーはこの要求を実行できませんでした。
例外
javax.servlet.ServletException
:Servlet.init()
サーブレットディスパッチャが例外をスローした場合 :リソース[ ]org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException
からのXMLドキュメントの23行目が無効です。ServletContext
/WEB-INF/dispatcher-servlet.xml