Spring报错:SystemId和publicId之间需要空格

来源:互联网 发布:用php编写一个排序算法 编辑:程序博客网 时间:2024/05/13 23:35

在配置Spring的配置文件beans.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: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/tx
         http://www.springframework.org/schema/tx/spring-tx.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/beans publicIDhttp://www.springframework.org/schema/beans/spring-beans-2.5.xsd SystemId

publicId必须和SystemId相邻放置

0 0
原创粉丝点击