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

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

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

ssm框架齐全的约束:


<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">

你可能感兴趣的:(BUG初恋记录,java)