no spring bean config was found starting with beans
来源:百度知道 编辑:UC知道 时间:2024/06/09 02:01:55
my eclipse tomcat 6x
struts2和spring的整合
在applicationContext内容中错误
No Spring bean config found in file [D:\workplaceforeclipse\strust2_spring\src\applicationContext.xml]
cvc-complex-type.2.4.a: Invalid content was found starting with element 'beans'. One of '{"http://java.sun.com/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":distributable, "http://java.sun.com/xml/ns/j2ee<
struts2和spring的整合
在applicationContext内容中错误
No Spring bean config found in file [D:\workplaceforeclipse\strust2_spring\src\applicationContext.xml]
cvc-complex-type.2.4.a: Invalid content was found starting with element 'beans'. One of '{"http://java.sun.com/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":distributable, "http://java.sun.com/xml/ns/j2ee<
顶上换这段试试
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>