学springMVC框架的时候遇到一些有关于Tomcat的问题。
第一个:这个报错java.lang.IllegalArgumentException: Unsupported class file major version 59。是因为版本不兼容的问题,尝试一下把jdk版本降低即可。
第二个问题是:找不到 “Bean” 元素声明的问题
```xml
<?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:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
https://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc
https://www.springframework.org/schema/mvc/spring-mvc.xsd">
在配置xml文件的头部出错。最好还是去官网赋值到笔记吧,手敲比复制出错率高。