线程中的异常" main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException:配置问题:无法找到XML架构命名空间的Spring NamespaceHandler [http://java.sun.com/xml/ns/persistence]
尝试从persistence.xml运行我的应用程序时出现错误
知道我可能出错的地方吗?
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<!-- <properties> -->
<!-- <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/> -->
<!-- value="create" to build a new database on each run; value="update" to modify an existing database;
value="create-drop" means the same as "create" but also drops tables when Hibernate closes; value="validate"
makes no changes to the database -->
<!-- <property name="hibernate.hbm2ddl.auto" value="none"/> -->
<!-- <property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.DefaultNamingStrategy"/> -->
<!-- <property name="hibernate.connection.charSet" value="UTF-8"/> -->
<!-- <property name="hibernate.default_schema" value="ECL"/> -->
<!-- <property name="hibernate.show_sql" value="true"/> -->
<!-- Uncomment the following two properties for JBoss only -->
<!-- property name="hibernate.validator.apply_to_ddl" value="false" / -->
<!-- property name="hibernate.validator.autoregister_listeners" value="false" / -->
<!-- </properties> -->
</persistence-unit>
</persistence>
&#13;