spring-beans.dtd 这个在哪个jar里

2025-03-23 00:49:32
推荐回答(2个)
回答1:

看看你的xml文件开头,有类似这样的
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"
default-autowire="byName">

,那么dtd文件在 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd

回答2:

org.springframework.beans.factory.xml
里面