java spring配置文件的头dtd该在那找

是随便在网上搜一个,不同版本能对应的上吗
2025-03-23 06:33:00
推荐回答(2个)
回答(1):

可以。

xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">

回答(2):

java spring配置文件的约束文件dtd可以通过手动下载spring开源包,在spring开源包中可以直接找到约束的dtd文件。
java spring配置文件的约束文件dtd如果是在联网的情况下,那么Myeclipse会自动联网来寻找到,并不需要手动来查找dtd文件;当主机没有联网时,打出"<",如果出现提示关键字,那么当前已经找到dtd文件,不用再手动查找,如果没有出现任何提示,那么可以通过手动来添加dtd文件到项目中。