Document root element "struts-config", must match DOCTYPE root "null".
或者
Document root element "beans", must match DOCTYPE
请查看application.xml和struts-config.xml的声明文件是否正确!
application.xml中的声明文件:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
struts-config.xml中的声明文件:
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
有时两个声明文件的不匹配的话,也会报错!
或者
Document root element "beans", must match DOCTYPE
请查看application.xml和struts-config.xml的声明文件是否正确!
application.xml中的声明文件:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
struts-config.xml中的声明文件:
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
有时两个声明文件的不匹配的话,也会报错!