解决办法
- 检查这个配置文件是否正确,如果代码没有问题,检查代码格式,代码 需要这种样式,不能随意分割,空格,回车等,否则会出现tomcat不识别的错误。
- 重启eclipse。
- 不要随意使用导包功能,可能因为你和原作者的环境,配置,jdk,tomcat版本不同会出现各种错误。
<?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:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
我的错误代码
Type Exception Report
Message Servlet.init() for servlet [dispatcher] threw exception
Description The server encountered an unexpected condition that prevented it from fulfilling the request.