org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 68; cvc-elt.1: 找不到元素 ‘beans‘ 的声明

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-5APD3N1w-1594972317815)(C:\Users\86151\AppData\Roaming\Typora\typora-user-images\1594950106712.png)]

如下图:这种类型的BUG( org.xml.sax.SAXParseException; )一般都是配置文件出错,比如这次的提示找不到Bean就应该查看约束,很大可能就是约束错误。

ssm框架齐全的约束:

<?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:aop="http://www.springframework.org/schema/aop"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
   http://www.springframework.org/schema/beans/spring-beans.xsd
   http://www.springframework.org/schema/context
   http://www.springframework.org/schema/context/spring-context.xsd
   http://www.springframework.org/schema/aop
   http://www.springframework.org/schema/aop/spring-aop.xsd
   http://www.springframework.org/schema/tx
   http://www.springframework.org/schema/tx/spring-tx.xsd">
.springframework.org/schema/tx/spring-tx.xsd">

猜你喜欢

转载自blog.csdn.net/m0_46160373/article/details/107410388