spring-1.0&2.0XML解析方式配置
?
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"><beans><!--加载定义的复合组件Bean--><bean name="complexUniConfig" singleton="true"><property name="resources"><list><value>classpath*:cdefine.xml</value></list></property></bean><bean id="defaultTableConfigIntercepter" name="code"><?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"><beans><!--加载定义的复合组件Bean--><bean name="complexUniConfig" singleton="true"><property name="resources"><list><value>classpath*:cdefine.xml</value></list></property></bean><bean id="defaultTableConfigIntercepter" class="com.vtradex.thorn.server.service.intercepter.pojo.DefaultRowDataAfterReturnIntercepter"/></beans>
?spring 1.x使用DOCTYPE,而2.x使用schema
?