新人在学习SSH过程中出现的问题
图片上传不上来。
第一个就是ApplicationContext中,出现错误。
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
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">
配置代码是这样的,在第一行中出现了:Referenced file contains errors (http://www.springframework.org/schema/beans). For more information, right click on the message in the Problems View and select "Show Details..."的错误
第二个问题就是在配置xml文件中,两个配置文件都出现同样的错误:The markup in the document preceding the root element must be well-formed.
具体代码如下:<?xml version="1.0" encoding="UTF-8"?>
<!DocTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
我在尝试是不是配置中出现了问题,但是昨晚弄了很久也没弄好。导致后续调试无法进行,求大神帮帮忙看看具体是什么问题
我用的是Myeclipse10,JDK版本1.6,spring为3.2.0,Struts2为2.3.30,hibernate3.6.10.